The Jenkins pipeline to poll the feature branch
In the following section, we will see how to create both the Jenkins jobs that are part of the pipeline to poll the feature branch. This pipeline contains two Jenkins jobs.
Creating a Jenkins job to poll, build, and unit test code on the feature1 branch
The first Jenkins job from the pipeline to poll the feature branch does the following tasks:
It polls the feature branch for changes at regular intervals
It performs a build on the modified code
It executes unit tests
Let's start creating the first Jenkins job. I assume you are logged in to Jenkins as an admin and have privileges to create and modify jobs. The steps are as follows:
From the Jenkins Dashboard, click on the New Item link.
Name your new Jenkins job
Poll_Build_UnitTest_Feature1_Branch
.Select the type of job as Freestyle project and click on OK to proceed.
Add a meaningful description about the job in the Description section.
Polling version control system using Jenkins
This is a critical...