Browse Source

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

pull/766/head
Greg Turnquist 7 years ago
parent
commit
8ce8a8307a
No known key found for this signature in database
GPG Key ID: CB2FA4D512B5C413
  1. 13
      Jenkinsfile

13
Jenkinsfile vendored

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

Loading…
Cancel
Save