Skip to content
Snippets Groups Projects
Commit 162e328f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6162 always deploy to nexus

parent e6e2ad5a
Branches
Tags
No related merge requests found
......@@ -39,6 +39,26 @@ pipeline {
}
}
stage('Set Version') {
when {
not {
anyOf {
branch 'master'
branch 'release'
}
}
}
steps {
script {
FAILED_STAGE=env.STAGE_NAME
JAR_TAG = getPomVersion('pom.xml').replace("SNAPSHOT", "${env.BRANCH_NAME}-SNAPSHOT")
}
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh "mvn --no-transfer-progress -s $MAVEN_SETTINGS versions:set -DnewVersion=${JAR_TAG} -DprocessAllModules=true"
}
}
}
stage('Build Archive Manager') {
steps {
script {
......@@ -52,12 +72,6 @@ pipeline {
}
stage('Deploy to Nexus'){
when {
anyOf {
branch 'master'
branch 'release'
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment