Continuous Delivery Pipeline Using Jenkins


Continuous Delivery Pipeline Using Jenkins

As we all are Continuous Delivery is process where any code changes made by developers are automatically build, deploy, tested and can be move to production.

So in Continuous Delivery feedback and visualization of this delivery process is one of the most important aspect that needs to be taken care of. So Jenkins Delivery pipeline plugin provides us the solution to visualize one or more delivery pipelines.

To achieve this, Delivery plugin required Our Jenkins job to have either upstream/downstream relationship with other Jenkins Job.

To Setup Delivery Pipeline we need to follow steps:

1)     Go to Jenkinsร  Manage Jenkinsร Manage Pluginร Install Delivery pipeline Plugin.


2)     Now Create a few sample Jenkins Job. In this blog for explanation purpose I am creating four different Jenkins Job Name as Build, Deploy, Test and Release. Please make sure all this Jenkins Job is running individually.



To Know how to Create a Build Job for every code check-in from GIT. Please refer to this link.

To Know how to Deploy the application using Jenkins. Please refer to this link.

To Know how to Create a Test Job and generate the testing report. Please refer to this link.

3)     Now inside Build Job, Under post build Actions, Select Build Other project.


4)     Since it’s my first job I need to add Deploy Job as downstream.


5)     Similarly for Deploy job add Test as Downstream job and for Test, Release Job as Downstream.

Once we add all the Upstream/Downstream Jenkins Job we can view it in Jenkins as well.


Now to create Pipeline in Jenkins we need to follow below steps:

1)     In the Jenkins home page, click on add new View.

2)     Provide the name of View and select Delivery pipeline View and click on OK.



3)     Once the view is created under Pipelines, Click on Add.

4)      Provide the name of components and select initial Job Name. 


5)     Click on Apply and OK to save the view.



6)     Once View is created we can run this Jenkins Pipeline from the Run option present on the top and would be able to view the real-time status of all Jenkins Job during each individual state.








   


  


SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post