It an be done, both for pipelines defined in yaml as well as classic pipelines defined in directly in the UI of Azure Devops.
Triggers in Yaml pipelines
Add a trigger
block to the top of your azure-pipeline.yaml
(or whatever your yaml file you have hooked up to your pipeline) and put the following content.
trigger:
- master
- develop
Triggers in Classic pipelines
- Open up the pipeline in edit mode
- Select "Triggers" in the top menu
- Check the box
Enable continuous integration
- Fill in the branch filters
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…