Feature/jdk upgrade #17
Vendored
+3
-6
@@ -8,11 +8,6 @@ pipeline {
|
||||
timestamps()
|
||||
}
|
||||
|
||||
environment {
|
||||
BUILD_VERSION = ''
|
||||
DEPLOY_BUILD = 'false'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
@@ -28,6 +23,8 @@ pipeline {
|
||||
error('BRANCH_NAME is unavailable; this pipeline must run as a multibranch job')
|
||||
}
|
||||
|
||||
env.DEPLOY_BUILD = 'false'
|
||||
|
||||
def releaseMatch = branch =~ /^release\/(\d+\.\d+\.\d+)$/
|
||||
if (releaseMatch.matches()) {
|
||||
env.BUILD_VERSION = "${releaseMatch[0][1]}.${env.BUILD_NUMBER}-RELEASE"
|
||||
@@ -43,7 +40,7 @@ pipeline {
|
||||
}
|
||||
|
||||
withMaven(maven: 'maven-3.9.16', globalMavenSettingsConfig: 'locusworks-settings') {
|
||||
sh 'mvn -B versions:set -DgenerateBackupPoms=false -DnewVersion="$BUILD_VERSION"'
|
||||
sh 'mvn -B org.codehaus.mojo:versions-maven-plugin:2.21.0:set -DgenerateBackupPoms=false -DnewVersion="$BUILD_VERSION"'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user