@@ -9,7 +9,7 @@ pipeline {
9
9
10
10
triggers {
11
11
pollSCM ' H/10 * * * *'
12
- upstream(upstreamProjects : " spring-data-commons/main " , threshold : hudson.model.Result . SUCCESS )
12
+ upstream(upstreamProjects : " spring-data-commons/2.7.x " , threshold : hudson.model.Result . SUCCESS )
13
13
}
14
14
15
15
options {
@@ -20,8 +20,9 @@ pipeline {
20
20
stages {
21
21
stage(" test: baseline (main)" ) {
22
22
when {
23
+ beforeAgent(true )
23
24
anyOf {
24
- branch ' main'
25
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
25
26
not { triggeredBy ' UpstreamCause' }
26
27
}
27
28
}
@@ -50,8 +51,9 @@ pipeline {
50
51
51
52
stage(" Test other configurations" ) {
52
53
when {
54
+ beforeAgent(true )
53
55
allOf {
54
- branch ' main'
56
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
55
57
not { triggeredBy ' UpstreamCause' }
56
58
}
57
59
}
@@ -108,8 +110,9 @@ pipeline {
108
110
109
111
stage(' Release to artifactory' ) {
110
112
when {
113
+ beforeAgent(true )
111
114
anyOf {
112
- branch ' main'
115
+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
113
116
not { triggeredBy ' UpstreamCause' }
114
117
}
115
118
}
@@ -142,7 +145,11 @@ pipeline {
142
145
143
146
stage(' Publish documentation' ) {
144
147
when {
145
- branch ' main'
148
+ beforeAgent(true )
149
+ anyOf {
150
+ branch(pattern : " main|(\\ d\\ .\\ d\\ .x)" , comparator : " REGEXP" )
151
+ not { triggeredBy ' UpstreamCause' }
152
+ }
146
153
}
147
154
agent {
148
155
label ' data'
0 commit comments