Only build main branch for an upstream trigger.
@@ -12,6 +12,12 @@ pipeline {
stages {
stage("Test") {
+ when {
+ anyOf {
+ branch 'master'
+ not { triggeredBy 'UpstreamCause' }
+ }
+ }
parallel {
stage("test: baseline") {
agent {
@@ -32,6 +38,7 @@ pipeline {
stage('Release to artifactory') {
when {
branch 'issue/*'
+ not { triggeredBy 'UpstreamCause' }
}
agent {
docker {
