@@ -68,8 +68,9 @@ pipeline {
68
68
69
69
stage(" test: baseline (jdk8)" ) {
70
70
when {
71
+ beforeAgent(true )
71
72
anyOf {
72
- branch ' main'
73
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
73
74
not { triggeredBy ' UpstreamCause' }
74
75
}
75
76
}
@@ -98,8 +99,9 @@ pipeline {
98
99
99
100
stage(" Test other configurations" ) {
100
101
when {
102
+ beforeAgent(true )
101
103
allOf {
102
- branch ' main'
104
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
103
105
not { triggeredBy ' UpstreamCause' }
104
106
}
105
107
}
@@ -201,8 +203,9 @@ pipeline {
201
203
202
204
stage(' Release to artifactory' ) {
203
205
when {
206
+ beforeAgent(true )
204
207
anyOf {
205
- branch ' main'
208
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
206
209
not { triggeredBy ' UpstreamCause' }
207
210
}
208
211
}
@@ -232,34 +235,6 @@ pipeline {
232
235
}
233
236
}
234
237
}
235
- stage(' Publish documentation' ) {
236
- when {
237
- branch ' main'
238
- }
239
- agent {
240
- label ' data'
241
- }
242
- options { timeout(time : 20 , unit : ' MINUTES' ) }
243
-
244
- environment {
245
- ARTIFACTORY = credentials(' 02bd1690-b54f-4c9f-819d-a77cb7a9822c' )
246
- }
247
-
248
- steps {
249
- script {
250
- docker. withRegistry(' ' , ' hub.docker.com-springbuildmaster' ) {
251
- docker. image(' adoptopenjdk/openjdk8:latest' ). inside(' -v $HOME:/tmp/jenkins-home' ) {
252
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' +
253
- ' -Dartifactory.server=https://repo.spring.io ' +
254
- " -Dartifactory.username=${ ARTIFACTORY_USR} " +
255
- " -Dartifactory.password=${ ARTIFACTORY_PSW} " +
256
- " -Dartifactory.distribution-repository=temp-private-local " +
257
- ' -Dmaven.test.skip=true clean deploy -U -B'
258
- }
259
- }
260
- }
261
- }
262
- }
263
238
}
264
239
265
240
post {
0 commit comments