fixed missing hypen in snapshot version

This commit is contained in:
Sebastian Sdorra
2020-03-11 15:30:24 +01:00
parent 4f49002f63
commit 625bba8cfb

2
Jenkinsfile vendored
View File

@@ -97,7 +97,7 @@ node('docker') {
def imageVersion = mvn.getVersion()
if (imageVersion.endsWith('-SNAPSHOT')) {
imageVersion = imageVersion.replace('-SNAPSHOT', "${commitHash.substring(0,7)}-${BUILD_NUMBER}")
imageVersion = imageVersion.replace('-SNAPSHOT', "-${commitHash.substring(0,7)}-${BUILD_NUMBER}")
}
stage('Archive') {