Skip to content
Snippets Groups Projects
Commit 4dff0a48 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

OZG-7906 use build number instead of commit hash for image verison

parent a4054634
Branches
Tags
1 merge request!15Ozg 7906 aggregation manager server
...@@ -312,7 +312,7 @@ String buildVersionName() { ...@@ -312,7 +312,7 @@ String buildVersionName() {
if (isReleaseBranch()) { if (isReleaseBranch()) {
return getPomVersion('pom.xml') return getPomVersion('pom.xml')
} }
return "${getPomVersion('pom.xml')}-${validateBranchName(env.BRANCH_NAME)}-${env.GIT_COMMIT.take(7)}".replaceAll("_", "-") return "${getPomVersion('pom.xml')}-${validateBranchName(env.BRANCH_NAME)}-${env.BUILD_NUMBER}".replaceAll("_", "-")
} }
Void tagAndPushDockerImage(String imageName, String newTag){ Void tagAndPushDockerImage(String imageName, String newTag){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment