File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pipeline {
99
1010 triggers {
1111 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 )
1313 }
1414
1515 options {
@@ -20,8 +20,9 @@ pipeline {
2020 stages {
2121 stage(" test: baseline (main)" ) {
2222 when {
23+ beforeAgent(true )
2324 anyOf {
24- branch ' main'
25+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
2526 not { triggeredBy ' UpstreamCause' }
2627 }
2728 }
@@ -50,8 +51,9 @@ pipeline {
5051
5152 stage(" Test other configurations" ) {
5253 when {
54+ beforeAgent(true )
5355 allOf {
54- branch ' main'
56+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
5557 not { triggeredBy ' UpstreamCause' }
5658 }
5759 }
@@ -108,8 +110,9 @@ pipeline {
108110
109111 stage(' Release to artifactory' ) {
110112 when {
113+ beforeAgent(true )
111114 anyOf {
112- branch ' main'
115+ branch( pattern : " main|( \\ d \\ . \\ d \\ .x) " , comparator : " REGEXP " )
113116 not { triggeredBy ' UpstreamCause' }
114117 }
115118 }
You can’t perform that action at this time.
0 commit comments