Refine CI triggers.

See #2220
This commit is contained in:
Mark Paluch 2022-07-18 09:18:28 +02:00
parent ac73ba4774
commit 7b96041bc3
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1

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