[Jenkinsfile] Use 'master' node for steps that don't actually compile code.

This avoids unnecessary delays by reducing contention with the 'linux' node
when multiple branches are building.
This commit is contained in:
Mat Sutcliffe
2019-01-03 23:54:23 +00:00
parent ac91c8fa09
commit e61cdda8cf

8
Jenkinsfile vendored
View File

@@ -209,13 +209,13 @@ try {
} }
} }
} catch (error) { } catch (error) {
node('linux') { node('master') {
notifyHarbormaster() notifyHarbormaster()
} }
throw error throw error
} }
node('linux') { node('master') {
try { try {
stage('Package XSwiftBus') { stage('Package XSwiftBus') {
unstash name: 'xswiftbus-linux-64' unstash name: 'xswiftbus-linux-64'
@@ -248,7 +248,7 @@ node('linux') {
} }
} }
node('linux') { node('master') {
try { try {
def regexDevBranch = /develop\/\d+\.\d+\.\d+/ def regexDevBranch = /develop\/\d+\.\d+\.\d+/
if (env.BRANCH_NAME && env.BRANCH_NAME ==~ regexDevBranch) { if (env.BRANCH_NAME && env.BRANCH_NAME ==~ regexDevBranch) {
@@ -297,7 +297,7 @@ node('linux') {
} }
} }
node('linux') { node('master') {
notifyHarbormaster() notifyHarbormaster()
} }