CI: Prevent having to spin up resources when not Master branch

This commit is contained in:
Jamie Curnow 2019-03-01 20:12:49 +10:00
parent 418899d425
commit 5a9a716ca6

12
Jenkinsfile vendored
View File

@ -81,11 +81,11 @@ pipeline {
} }
} }
stage('Build Master') { stage('Build Master') {
when {
branch 'master'
}
parallel { parallel {
stage('x86_64') { stage('x86_64') {
when {
branch 'master'
}
steps { steps {
ansiColor('xterm') { ansiColor('xterm') {
// Codebase // Codebase
@ -127,9 +127,6 @@ pipeline {
} }
} }
stage('armhf') { stage('armhf') {
when {
branch 'master'
}
agent { agent {
label 'armhf' label 'armhf'
} }
@ -173,9 +170,6 @@ pipeline {
} }
} }
stage('arm64') { stage('arm64') {
when {
branch 'master'
}
agent { agent {
label 'arm64' label 'arm64'
} }