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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.