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:

  1. Click on New Item.
  2. Name your new Jenkins job Poll_Build_StaticCodeAnalysis_IntegrationTest_Integration_Branch ...

Get Learning Continuous Integration with Jenkins now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.