add 'g' prefix before artifact SHA (#358)

This commit is contained in:
Adam Babik 2017-09-25 18:06:13 +02:00 committed by Ivan Daniluk
parent fc8f59e121
commit 3afcff278f
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ def getVersion(branch, sha, buildNumber) {
version = branch.replaceAll(/\//, '-') version = branch.replaceAll(/\//, '-')
if (sha?.trim()) { if (sha?.trim()) {
version = version + '-' + sha version = version + '-g' + sha
} }
if (buildNumber?.trim()) { if (buildNumber?.trim()) {

2
Jenkinsfile vendored
View File

@ -5,7 +5,7 @@ def getVersion(branch, sha, buildNumber) {
version = branch.replaceAll(/\//, '-') version = branch.replaceAll(/\//, '-')
if (sha?.trim()) { if (sha?.trim()) {
version = version + '-' + sha version = version + '-g' + sha
} }
if (buildNumber?.trim()) { if (buildNumber?.trim()) {