Skip to content

Instantly share code, notes, and snippets.

@david-bc
Created September 18, 2017 20:36
Show Gist options
  • Save david-bc/4ded09b3b4e10f9be2c05c279195e2b5 to your computer and use it in GitHub Desktop.
Save david-bc/4ded09b3b4e10f9be2c05c279195e2b5 to your computer and use it in GitHub Desktop.
Deployment Pipeline - Parallel Build
node {
stage('Build Servers') {
for (int i = 0; i < params.NUM_OF_NODES.toInteger() ; i++) {
stage ("BuildNode_${node}") {
BUILD_NODES["BuildNode_${node}"] = {
sh "gcloud compute disks….."
}
}
}
parallel BUILD_NODES
stash name: "files", includes: "*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment