Creating triggers
This section will teach you how to create a trigger – that is, make a build pipeline run automatically when you push your code to a specific branch:
- Edit a build pipeline by clicking on the three dots to view the details of the build pipeline, and then click on Edit:
Figure 2.27 – Editing a build pipeline
- Click on Triggers and update the following information:
- Enable continuous integration: Turn this on
- Branch filters | Type: Include | Branch specification: main
If you push your code on the main branch, a build pipeline will run automatically; this is called enabling continuous integration:
Figure 2.28 – Turning on continuous integration
In this section, you learned how to enable automatically running a build pipeline after we push the code. This will reduce the daily workload to manually build your code whenever you push it to the source code repository.
The following...