Skip to content

Commit 676ee80

Browse files
committed
DATAMONGO-2280 - Only test main branch for upstream triggers.
1 parent b54641f commit 676ee80

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Jenkinsfile

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ pipeline {
1212

1313
stages {
1414
stage("Test") {
15+
when {
16+
anyOf {
17+
branch '2.1.x'
18+
not { triggeredBy 'UpstreamCause' }
19+
}
20+
}
1521
parallel {
1622
stage("test: baseline") {
1723
agent {
@@ -38,6 +44,7 @@ pipeline {
3844
stage('Release to artifactory') {
3945
when {
4046
branch 'issue/*'
47+
not { triggeredBy 'UpstreamCause' }
4148
}
4249
agent {
4350
docker {

0 commit comments

Comments
 (0)