'how to exclude build all branches except master branch in Azure Pipelines?
Solution 1:[1]
If you want the YAML build pipeline can only be triggered form the master branch, you can try with the things:
Only keep the YAML file on the master branch. And make sure the branches filter on the trigger only include master.
trigger: branches: include: - master
If you cannot only keep the YAML file on the master branch, make sure the YAML file on each branch has the same branches filter as above.
Set the trigger from the settings page and only include the master branch. With this way, the triggers set in the YAML files will be overridden by that on the settings page.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | avazula |