I'm observing a strange behavior and wanted to figure out if this is a problem with the setup or I'm not understanding the functionality correctly.
I have a repository with two branches branc1 and branch2 and two builds that both use the same VCS.
Build B snapshot-depends on Build A.
Build A has default branch branch1
Build B has default branch branch2.
If I trigger Build B from run custom build dialog and explicitly select a branch from the changes\build branch option (say, I selected branch2) then Build A is triggered on branch2 and correct artifacts are passed back to build B as expected.
But if I just simply run Build B, than it runs with its default branch (branch2), triggers build A, but build A also runs with its default branch (branch1). So as a result I get the wrong combination - build B ran on one branch but received the artifacts from another branch.
Can anyone tell me what am I missing here?