7 Defining a pipeline as code for microservices

This chapter covers

  • Using a Jenkins multibranch pipeline plugin and GitFlow model
  • Defining multibranch pipelines for containerized microservices
  • Triggering a Jenkins job on push events using GitHub webhooks
  • Exporting Jenkins jobs configuration as XML and cloning Jenkins jobs

The previous chapters covered how to deploy a Jenkins cluster on multiple cloud providers by using automation tools: HashiCorp Packer and Terraform. In this chapter, we will define a continuous integration (CI) pipeline for Dockerized microservices.

In chapter 1, you learned that CI is continuously testing and building all changes of the source code before integrating them into the central repository. Figure 7.1 summarizes ...

Get Pipeline as Code 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.