Created
September 18, 2017 20:36
-
-
Save david-bc/4ded09b3b4e10f9be2c05c279195e2b5 to your computer and use it in GitHub Desktop.
Deployment Pipeline - Parallel Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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