Fixed Jenkinsfile
Locusworks Team/app-logger/pipeline/head This commit looks good

This commit is contained in:
iparenteau committed 2026-09-02 12:11:44 -05:00
1 parent f49a8150d1
commit b8e81c136f
1 file changed
+3 -6
Vendored
+3 -6
View File
@@ -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"'
}
}
}