-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Jenkins Administrator's Guide
By :

In order to understand how the roles and permissions work, we will create two Python scripts that can add or subtract two numbers. Two GitHub repositories are created to contain each script:
Figure 3.1 – Two GitHub repositories each containing a Python script and support files
Creating or updating a PR triggers a premerge build in Jenkins to compile the project, run unit tests, and generate a code coverage report. A premerge build is a CI build that validates a PR. Since a PR must be validated before a merge, the validation build is called a premerge build. At the end of the build, Jenkins updates the commit status in GitHub to indicate whether or not the premerge build was successful. The GitHub repo is configured to require a successful premerge build as a prerequisite to a merge:
Figure 3.2 – Premerge build workflow
A successful premerge build followed by a merge...