Triggering Builds
One of the key parts of automation is establishing how a pipeline is to be initiated. This is configured by setting up a trigger for each pipeline. In Chapter 3, Getting Started – What Build Information Is Available to Me?, we covered how to initiate a build manually with the CLI using gcloud
. Cloud Build offers a variety of ways to trigger builds, whether integrated with services offered by Google Cloud Platform (GCP) or external mechanisms such as a webhook. In this chapter, we will see the various trigger options offered by Cloud Build as we traverse through the following topics:
- The anatomy of a trigger
- Integrations with source code management (SCM) systems
- Defining your own triggers