Devops Tutorial 23 - Jenkins Delivery pipeline (Continued)
What you will Learn:
Setup Delivery pipeline (add ‘Delivery pipeline’ view)
View Fullscreen
Enable start of new pipeline build
Number of pipeline instances per pipeline
Enable rebuild
Total Build Time
Setup Delivery pipeline in Jenkins (Add ‘Delivery pipeline’ view)
This is continuation of previous tutorial.
Go to the jenkins dashboard
You would see + sign as seen above, click it
Select ‘Delivery Pipeline View’ radio button and enter any view name
Click Ok
Scroll down the page, you will see ‘Add’ button under ‘Pipelines’ section
Click Add
Enter any name
Select first job from the ‘Initial Job’ dropdown
Apply and Ok.
The view will show us the past execution.
We can see pictorial view of chained jobs
View Fullscreen
On the left hand side, you will see ‘View Fullscreen’
Click it to see the full screen view
Go back
Click ‘Edit View’
Enable start of new pipeline build
Check the checkbox ‘Enable start of new pipeline build’
Click the help icon seen against above checkbox, notice the description
So this option will enable a run button in the view
Apply and Ok
You can now see ‘Build now’ button
Click this button to start a new pipeline.
Notice below that #2 pipeline has been triggered. The DeployJob is waiting for BuildJob to get complete
See below. The TestJob is waiting for DeployJob to get complete
See below. All the jobs and pipeline is complete
Repeat this 2 more times so that we have 4 pipelines in total.
Notice above that you can only see last 3 runs.
To understand this, click ‘Edit View’ one more time.
Number of pipeline instances per pipeline
Notice below that ‘Number of pipeline instances per pipeline’ has 3 as default number. That’s the reason you can only see last 3 runs
So, ‘Number of pipeline instances per pipeline’ means that, by default, you can see the result of last ‘n’ runs on a single screen.
Let us change this default number to 4
Apply and Ok
You can now see the result of last 4 runs
Enable rebuild
Click ‘Edit View’ and select ‘Enable rebuild’.
Apply and Ok
You can now see an icon to rebuild, see below.
Many a time, you may now want to trigger a new pipeline. Instead, you may want to execute a job again in the same pipeline. This feature can then be used
Let us click this rebuild for #6 for DeployJob. Notice below that same pipeline is re-executed
Total Build Time
Click ‘Edit View’ and select ‘Show total build time’
Apply and Ok
You can now see total build time for all the pipelines
So this is how we setup a basic delivery pipeline in jenkins.
Thank you for reading!