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

use build number instead of commit hash for version name

parent 5d48187b
No related branches found
No related tags found
1 merge request!3reduce branch name length to 20 characters
......@@ -284,7 +284,7 @@ String buildVersionName(String pomFile) {
if (isReleaseBranch()) {
return getPomVersion(pomFile)
}
return "${getPomVersion(pomFile)}-${validateBranchName(env.BRANCH_NAME)}-${env.GIT_COMMIT.take(7)}".replaceAll("_", "-")
return "${getPomVersion(pomFile)}-${validateBranchName(env.BRANCH_NAME)}-${env.BUILD_NUMBER}".replaceAll("_", "-")
}
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