We have a gitflow branching strategy and I was wondering how that applies to the Azure Pipelines we have configured.
We have a ci.yml
and cd.yml
pipelines in the repositories. These pipelines cover all branches. (triggers, PR build validation, schedule, ...)
When I first setup these pipelines I have to manually create them on Azure DevOps.
There I have to select the default branch, I need to select the branch that has the new pipelines in order to use them.
My questions are:
- Do I need to merge the pipelines all the way up to
master
and change the default branch for the pipeline tomaster
? Which also means I need to go through the entire gitflow to fix the pipeline? - If the
ci.yml
pipeline triggers a build, from which branch is that pipeline taken?