Skip to content

Commit 99b9698

Browse files
committed
Update build triggers.
See #1377
1 parent cd86a77 commit 99b9698

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Jenkinsfile

+7-4
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)