Skip to content
Snippets Groups Projects
Commit 0d43a826 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5907 update jenkinsfile to upload jars from branches

parent f2d958e9
Branches
Tags
No related merge requests found
...@@ -97,7 +97,7 @@ pipeline { ...@@ -97,7 +97,7 @@ pipeline {
steps { steps {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
JAR_TAG = getPomVersion(pomFile).replace("SNAPSHOT", "${env.BRANCH_NAME}-SNAPSHOT") JAR_TAG = getRootPomVersion().replace("SNAPSHOT", "${env.BRANCH_NAME}-SNAPSHOT")
} }
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh "mvn -s $MAVEN_SETTINGS versions:set -DnewVersion=${JAR_TAG} -DprocessAllModules=true" sh "mvn -s $MAVEN_SETTINGS versions:set -DnewVersion=${JAR_TAG} -DprocessAllModules=true"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment