Jenkins Pipeline: Continuous Integration Build Pipeline

Jenkins Pipeline: Continuous Integration Build Pipeline

Jenkins Pipeline (or simply "Pipeline") is a suite of plugins which supports implementing and integrating continuous integration and delivery pipelines into Jenkins.

What is Continuous Integration?

Continuous Integration (CI) is a development practice that requires developers to integrate code into a shared repository several times a day. Each check-in is then verified by an automated build, allowing teams to detect problems early.

What is Continuous Delivery?

Continuous Delivery (CD) is a process where any code changes made by developers are automatically building, deploy, tested and can be a move to production.
So in Continuous Delivery feedback and visualization of this delivery process is one of the most important aspects that need to be taken care of.

Build Pipeline plugin

This plugin provides a Build Pipeline View of upstream and downstream connected jobs that typically form a build pipeline.  In addition, it offers the ability to define manual triggers for jobs that require intervention prior to execution, e.g. an approval process outside of Jenkins.

To Setup Build pipeline we need to follow steps:

1)    Go to Jenkinsà Manage JenkinsàManage PluginàInstall Build 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 my Build Job, in post-build Actions, Select Build Another project.

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

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

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 Jenkins's home page, click on add new View.

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

3)    Once the view is created under Pipeline Flow. Select Initial Jenkins Job in that case Job name is Build.

4)    Under Display Options, you can provide any other setting if required.

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.        




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
January 24, 2019 at 10:59 PM

Hi Ankur..Can you please share the steps to deploy war/ear in weblogic using jenkins?

July 23, 2019 at 10:18 AM

Hi Ankur..Can you please share the steps to deploy war/ear in weblogic using jenkins?