Skip to content

Instantly share code, notes, and snippets.

@abayer abayer/Jenkinsfile Secret
Created Feb 27, 2017

Embed
What would you like to do?
// 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
You can’t perform that action at this time.