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

Jenkins Administrator's Guide
By :

In this chapter, we will build a CD pipeline. Approving and merging a PR triggers a postmerge build in Jenkins to compile and package the project, run integration tests, apply version tags to the Git repositories and the artifacts, and deliver the artifacts (a Docker image in our case) to Docker Hub. At the end of the build, Jenkins pushes the Git tag to the GitHub repository:
Figure 4.1 – Postmerge CD build workflow
We will examine the GitHub build triggers for both AWS Jenkins, where GitHub has bidirectional communications, as well as firewalled Jenkins, where Jenkins can reach GitHub but GitHub cannot reach Jenkins:
Figure 4.2 – Different access rules from GitHub to AWS Jenkins and firewalled Jenkins
In order to build this postmerge CD pipeline, we need to create and configure the following: