Skip to content
Snippets Groups Projects
Commit 65779e1d authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5907 upload branch jars to nexus

parent 6202b403
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ pipeline {
steps {
script {
FAILED_STAGE=env.STAGE_NAME
JAR_TAG = getPomVersion().replace("SNAPSHOT", "${env.BRANCH_NAME}-SNAPSHOT")
JAR_TAG = getPomVersion('pom.xml').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"
......@@ -219,3 +219,8 @@ Boolean matchRegexVersion(List versions, String regex) {
return true
}
String getPomVersion(String pomFile){
def pom = readMavenPom file: pomFile
return pom.version
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment