Search code examples
gitazure-devopsazure-pipelinesgit-flow

Azure DevOps Trigger build on release/{version} branch


For Azure DevOps, how can you automatically build when you create a release branch in the formation release/{version}?

Looking at the triggers tab of a build, the filter allows me to select a branch, but that is only for pre-defined branches, and not a branch type / format.

I don't know yet what the branch name will be as it will follow a version string format like release/{major}.{minor}.

Any ideas how this can be achieved?


Solution

  • you can just type in whatever you like, so in your case use:

    release/*
    

    Reading: https://learn.microsoft.com/en-us/azure/devops/pipelines/release/triggers?view=azure-devops#release-triggers