We are in the process of configuring GitFlow branching where we want to trigger PR validation pipeline when a PR is created on release/* branch after our features in develop branch are ready to move on to next stage. As per Azure DevOps, we need to setup build validation pipelines in branch policies which is per branch. We want to archive our release branch after each release and use new release branch with same pattern i.e release/* in the next release .
How are you folks doing gitflow in Azure Devops ?
You can create a branch policy for the wildcard release/*
and it will be for all future releases branch.
In Azure DevOps, the /*
represents as a folder so go the folder (in the Branches page), click on the ...
dots, and "Branch policies".
You can see there that the policy of for the wildcard: