From dc311e1b979b374f2a572f01f45c0460480a5079 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 29 Oct 2020 09:24:14 +0100 Subject: [PATCH] #1196 - Enable maintenance branch build. --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7fc146e3..27cda82f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ pipeline { stage("test: baseline (jdk8)") { when { anyOf { - branch 'master' + branch '2.4.x' not { triggeredBy 'UpstreamCause' } } } @@ -35,7 +35,7 @@ pipeline { stage("Test other configurations") { when { allOf { - branch 'master' + branch '2.4.x' not { triggeredBy 'UpstreamCause' } } } @@ -73,7 +73,7 @@ pipeline { stage('Build project and release to artifactory') { when { anyOf { - branch 'master' + branch '2.4.x' not { triggeredBy 'UpstreamCause' } } } @@ -90,7 +90,7 @@ pipeline { ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') } - steps { + steps { sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory ' + '-Dartifactory.server=https://repo.spring.io ' + "-Dartifactory.username=${ARTIFACTORY_USR} " +