DATAMONGO-2280 - Only test main branch for upstream triggers.

This commit is contained in:
Greg Turnquist
2019-06-28 19:29:51 -05:00
parent df94214527
commit 8ce8a8307a

13
Jenkinsfile vendored
View File

@@ -49,6 +49,12 @@ pipeline {
}
stage("test: baseline") {
when {
anyOf {
branch 'master'
not { triggeredBy 'UpstreamCause' }
}
}
agent {
docker {
image 'springci/spring-data-openjdk8-with-mongodb-4.0:latest'
@@ -68,6 +74,12 @@ pipeline {
}
stage("Test other configurations") {
when {
anyOf {
branch 'master'
not { triggeredBy 'UpstreamCause' }
}
}
parallel {
stage("test: mongodb 4.1") {
agent {
@@ -94,6 +106,7 @@ pipeline {
stage('Release to artifactory') {
when {
branch 'issue/*'
not { triggeredBy 'UpstreamCause' }
}
agent {
docker {