I have three configurations:
Deploy triggers when Build1 or Build2 finishes
Deploy needs the branch name that was built, in order to deploy after build finishes
Build1 is a maual build, so branch is picked from drop down
Build2 creates a new branch, based on build parameter.
Deploy picks branch name perfectly from Build1
Deploy does not pick the branch name from Build2, though, it triggers on default branch instead.
In the documentation it says I should be using Snaphost dependencies if I want to share a build.
The problem with Snaphot dependencies is that, If Build1 triggers Deploy, Deploy will run Build2 and that is something I don't want.
Any way to pass the branch name from configuration to configuration without using Snapshot dependency?