@@ -3,7 +3,7 @@ pipeline {
3
3
4
4
triggers {
5
5
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 )
7
7
}
8
8
9
9
options {
@@ -15,7 +15,7 @@ pipeline {
15
15
stage(" test: baseline (jdk8)" ) {
16
16
when {
17
17
anyOf {
18
- branch ' master '
18
+ branch ' 6.1.x '
19
19
not { triggeredBy ' UpstreamCause' }
20
20
}
21
21
}
@@ -26,6 +26,7 @@ pipeline {
26
26
27
27
environment {
28
28
DOCKER_HUB = credentials(' hub.docker.com-springbuildmaster' )
29
+ ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
29
30
}
30
31
31
32
steps {
@@ -44,7 +45,7 @@ pipeline {
44
45
stage(" Test other configurations" ) {
45
46
when {
46
47
allOf {
47
- branch ' master '
48
+ branch ' 6.1.x '
48
49
not { triggeredBy ' UpstreamCause' }
49
50
}
50
51
}
@@ -57,6 +58,7 @@ pipeline {
57
58
58
59
environment {
59
60
DOCKER_HUB = credentials(' hub.docker.com-springbuildmaster' )
61
+ ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
60
62
}
61
63
62
64
steps {
@@ -80,6 +82,7 @@ pipeline {
80
82
81
83
environment {
82
84
DOCKER_HUB = credentials(' hub.docker.com-springbuildmaster' )
85
+ ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
83
86
}
84
87
85
88
steps {
@@ -100,7 +103,7 @@ pipeline {
100
103
stage(' Release to artifactory' ) {
101
104
when {
102
105
anyOf {
103
- branch ' master '
106
+ branch ' 6.1.x '
104
107
not { triggeredBy ' UpstreamCause' }
105
108
}
106
109
}
@@ -117,7 +120,7 @@ pipeline {
117
120
script {
118
121
docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
119
122
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 ' +
121
124
' -Dartifactory.server=https://repo.spring.io ' +
122
125
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
123
126
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
@@ -133,7 +136,7 @@ pipeline {
133
136
134
137
stage(' Publish documentation' ) {
135
138
when {
136
- branch ' master '
139
+ branch ' 6.1.x '
137
140
}
138
141
agent {
139
142
label ' data'
@@ -148,7 +151,7 @@ pipeline {
148
151
script {
149
152
docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
150
153
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 ' +
152
155
' -Dartifactory.server=https://repo.spring.io ' +
153
156
" -Dartifactory.username=${ ARTIFACTORY_USR} " +
154
157
" -Dartifactory.password=${ ARTIFACTORY_PSW} " +
0 commit comments