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.' } }