Skip to content
Snippets Groups Projects
Commit 45b0b9d1 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5907 upload branch jars to nexus

parent 462360ef
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ pipeline {
}
}
}
stage('Client') {
environment {
FORCE_COLOR = 'false'
......@@ -83,6 +84,28 @@ pipeline {
// }
// }
}
stage('Set Version') {
when {
not {
anyOf {
branch 'master'
branch 'release'
}
}
}
steps {
script {
FAILED_STAGE=env.STAGE_NAME
JAR_TAG = getPomVersion(pomFile).replace("SNAPSHOT", "${env.BRANCH_NAME}-SNAPSHOT")
}
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh "mvn -s $MAVEN_SETTINGS versions:set -DnewVersion=${JAR_TAG} -DprocessAllModules=true"
}
}
}
stage('Server') {
steps {
script {
......@@ -120,12 +143,6 @@ pipeline {
}
}
stage('Deploy Maven Artifacts to Nexus') {
when {
anyOf {
branch 'master'
branch 'release'
}
}
steps {
script {
FAILED_STAGE = env.STAGE_NAME
......@@ -133,6 +150,7 @@ pipeline {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS -pl -alfa-client -DskipTests deploy'
sh "mvn -s $MAVEN_SETTINGS versions:revert"
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment