We have one build pipeline (Product1) that use multiple branches (dev, test, prod).
In release pipeline/artifacts settings, we use the following settings:
Default version
: Latest from a specific branch with tagsBranch
: $(Branch.name) --> this is settable at release time.
The scenario that we are having:
- The latest successful build is using the dev branch.
- There is another successful build using the test branch.
- Create new release, and set Branch.name to test --> it does not use test branch, it uses the last successful one which is dev branch.
How can we use branch variables in release pipelines?