Refine CI build triggers.

Allow full builds from maintenance branches.

See #1509
This commit is contained in:
Mark Paluch
2022-07-18 08:57:54 +02:00
parent 452928818f
commit 071d6c4594

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' }
}
}