August 2017
Intermediate to advanced
332 pages
9h 16m
English
As an example, let's extend the Hello World pipeline to contain two stages:
pipeline { agent any stages { stage('First Stage') { steps { echo 'Step 1. Hello World' } } stage('Second Stage') { steps { echo 'Step 2. Second time Hello' echo 'Step 3. Third time Hello' } } }}
The pipeline has no special requirements in terms of environment (any slave agent), and it executes three steps inside two stages. When we click on Build Now, we should see the visual representation:

The pipeline succeeded, and we can see the step execution details by clicking on the console. If any of the steps failed, the processing would stop and ...
Read now
Unlock full access