-
-
Save abayer/bbe18e779696af88af9208f7502b898c to your computer and use it in GitHub Desktop.
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
// right now: | |
stage('foo') { | |
steps { | |
parallel(a: { echo "First branch" }, | |
b: { echo "Second branch }) | |
} | |
} | |
// Translates roughly to: | |
// stage('foo') contains parallel | |
// parallel contains branches a and b | |
// branch a contains echo | |
// branch b contains echo | |
// proposed | |
stage('foo') { | |
parallel { | |
stage('a') { | |
steps { | |
echo "First branch" | |
} | |
} | |
stage('b') { | |
steps { | |
echo "Second branch" | |
} | |
} | |
} | |
} | |
// Translates roughly to: | |
// stage('foo') contains parallel | |
// parallel contains branches: a and b | |
// branch a contains stage('a') | |
// stage('a') contains echo | |
// branch b contains stage('b') | |
// stage('b') contains echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment