Skip to content

Instantly share code, notes, and snippets.

@evagonz
Created June 12, 2018 12:27
Show Gist options
  • Save evagonz/a7d96c719cba693a052d325de6c564aa to your computer and use it in GitHub Desktop.
Save evagonz/a7d96c719cba693a052d325de6c564aa to your computer and use it in GitHub Desktop.
node('centos') {
stage('step 1') {
echo 'This is the first stage.'
}
stage('step 2') {
echo 'This is stage 2, running on the same node as stage 1. By having both stage blocks *inside* the node block, the pipeline runs much quicker.'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment