Skip to content

Commit 0acec11

Browse files
committed
CI: Prevent having to spin up resources when not Master branch
1 parent 418899d commit 0acec11

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Jenkinsfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ pipeline {
8181
}
8282
}
8383
stage('Build Master') {
84+
when {
85+
branch: 'master'
86+
}
8487
parallel {
8588
stage('x86_64') {
86-
when {
87-
branch 'master'
88-
}
8989
steps {
9090
ansiColor('xterm') {
9191
// Codebase
@@ -127,9 +127,6 @@ pipeline {
127127
}
128128
}
129129
stage('armhf') {
130-
when {
131-
branch 'master'
132-
}
133130
agent {
134131
label 'armhf'
135132
}
@@ -173,9 +170,6 @@ pipeline {
173170
}
174171
}
175172
stage('arm64') {
176-
when {
177-
branch 'master'
178-
}
179173
agent {
180174
label 'arm64'
181175
}

0 commit comments

Comments
 (0)