Skip to content

Commit 414e95d

Browse files
committed
Refine CI build triggers.
Allow CI builds triggered from maintenance branches. See #2568
1 parent 2da0aed commit 414e95d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Jenkinsfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -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
}
@@ -108,8 +109,9 @@ pipeline {
108109

109110
stage('Release to artifactory') {
110111
when {
112+
beforeAgent(true)
111113
anyOf {
112-
branch 'main'
114+
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
113115
not { triggeredBy 'UpstreamCause' }
114116
}
115117
}

0 commit comments

Comments
 (0)