Technical questionAccepted answer
How to trigger Azure Pipeline on every new push on any branch?
artois
Jan 29
0 views1
My current implementation of Azure pipelines is to trigger only when a pull request is made to Develop branch. But, I want to run the pipeline on every new push on any branch. How to trigger that?
My current implementation of the Azure YAML file
trigger:
- none
pr:
- branches:
include:
- dev
and below that steps are configured.
1 answer
Accepted answer · original discussion
Yogi
PermalinkJan 29
You need to specify the trigger something like this. So for example, if there is anything pushed in dev branch a build will get triggered. Ref
trigger:
- dev
or to be more explicit:
trigger:
branches:
include:
- dev
- another-branch
If no triggers are specified it will by default run for all branches. It can be explicitly defined as:
trigger:
branches:
include:
- '*'
0 question comments
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.