The Jenkins pipeline to poll the integration branch
This is the second pipeline of the two, both of which are part of the CI pipeline structure discussed in the previous chapter. This pipeline contains two Jenkins jobs. The first Jenkins job does the following tasks:
It polls the integration branch for changes at regular intervals
It executes the static code analysis
It performs a build on the modified code
It executes the integration tests
Creating a Jenkins job to poll, build, perform static code analysis, and integration tests
I assume you are logged in to Jenkins as an admin and have privileges to create and modify jobs. From the Jenkins Dashboard, follow these steps:
Click on New Item.
Name your new Jenkins job
Poll_Build_StaticCodeAnalysis_IntegrationTest_Integration_Branch
.Set the type of job as Freestyle project and click on OK to proceed.
Polling the version control system for changes using Jenkins
This is a critical step in which we connect Jenkins with the version control system. This...