@@ -3,7 +3,7 @@ pipeline {
33
44 triggers {
55 pollSCM ' H/10 * * * *'
6- upstream(upstreamProjects : " spring-data-commons/master " , threshold : hudson.model.Result . SUCCESS )
6+ upstream(upstreamProjects : " spring-data-commons/2.5.x " , threshold : hudson.model.Result . SUCCESS )
77 }
88
99 options {
@@ -15,7 +15,7 @@ pipeline {
1515 stage(" test: baseline (jdk8)" ) {
1616 when {
1717 anyOf {
18- branch ' master '
18+ branch ' 6.1.x '
1919 not { triggeredBy ' UpstreamCause' }
2020 }
2121 }
@@ -26,6 +26,7 @@ pipeline {
2626
2727 environment {
2828 DOCKER_HUB = credentials(' hub.docker.com-springbuildmaster' )
29+ ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
2930 }
3031
3132 steps {
@@ -44,7 +45,7 @@ pipeline {
4445 stage(" Test other configurations" ) {
4546 when {
4647 allOf {
47- branch ' master '
48+ branch ' 6.1.x '
4849 not { triggeredBy ' UpstreamCause' }
4950 }
5051 }
@@ -57,6 +58,7 @@ pipeline {
5758
5859 environment {
5960 DOCKER_HUB = credentials(' hub.docker.com-springbuildmaster' )
61+ ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
6062 }
6163
6264 steps {
@@ -80,6 +82,7 @@ pipeline {
8082
8183 environment {
8284 DOCKER_HUB = credentials(' hub.docker.com-springbuildmaster' )
85+ ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
8386 }
8487
8588 steps {
@@ -100,7 +103,7 @@ pipeline {
100103 stage(' Release to artifactory' ) {
101104 when {
102105 anyOf {
103- branch ' master '
106+ branch ' 6.1.x '
104107 not { triggeredBy ' UpstreamCause' }
105108 }
106109 }
@@ -117,7 +120,7 @@ pipeline {
117120 script {
118121 docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
119122 docker. image(' adoptopenjdk/openjdk8:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
120- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,artifactory -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-neo4j-non-root ' +
123+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml - Pci,artifactory -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-neo4j-non-root ' +
121124 ' -Dartifactory.server=https://repo.spring.io ' +
122125 " -Dartifactory.username=${ ARTIFACTORY_USR} " +
123126 " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
@@ -133,7 +136,7 @@ pipeline {
133136
134137 stage(' Publish documentation' ) {
135138 when {
136- branch ' master '
139+ branch ' 6.1.x '
137140 }
138141 agent {
139142 label ' data'
@@ -148,7 +151,7 @@ pipeline {
148151 script {
149152 docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
150153 docker. image(' adoptopenjdk/openjdk8:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
151- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,distribute -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-neo4j-non-root ' +
154+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml - Pci,distribute -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-neo4j-non-root ' +
152155 ' -Dartifactory.server=https://repo.spring.io ' +
153156 " -Dartifactory.username=${ ARTIFACTORY_USR} " +
154157 " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
0 commit comments