Refine CI build triggers.

Allow CI builds triggered from maintenance branches.

See #2568
This commit is contained in:
Mark Paluch
2022-07-18 08:56:29 +02:00
parent 2da0aed77d
commit 414e95dace

6
Jenkinsfile vendored
View File

@@ -20,8 +20,9 @@ pipeline {
stages {
stage("test: baseline (main)") {
when {
beforeAgent(true)
anyOf {
branch 'main'
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' }
}
}
@@ -108,8 +109,9 @@ pipeline {
stage('Release to artifactory') {
when {
beforeAgent(true)
anyOf {
branch 'main'
branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
not { triggeredBy 'UpstreamCause' }
}
}