In the Triggers tab, you can set when your pipeline will start:
You can configure the following triggers:
- Continuous integration: This is the trigger that allows you to use the CI pipeline. Every time someone pushes new commits to your repository, the pipeline starts. To enable it, you simply check the flag shown in the preceding screenshot. You can configure what branch you want to include or exclude (if you include a branch, the pipeline will also start if someone pushes new commits to that branch) and what disk paths will be included or excluded (for example, you may want to exclude a source folder that contains only documentation files so that a build is not performed if someone changes the documentation).
- Pull request validation: You can also use the pipeline to verify that the code inserted after a pull request, at least, compiles (and reject it in the event of a failure of the build).
- Scheduled: You can use this option to implement a nightly build—for example, you can configure your pipeline to start every night at midnight.
- Build completion: You can set up your pipeline to start if another build pipeline completes its job without errors. With this option, you can implement a chain of build pipelines.
Of course, you can set any one or more of the previous options simultaneously.