Finish Builder trigger picking incorrect branch
Answered
I have a build A which is triggered when build B is completed.
So I added a finish build trigger within build A , such that when build B finishes then build A should get started.
I used Branch Filter '+:*' within the trigger.
Now when I run build B with branch say ABC then build A runs with other branch, but I want build A should run with same branch on which build B is running.
Please sign in to leave a comment.
Hello,
Could you please let me know if build A has a snapshot dependency on B? Unless there is one, build A would start on the default branch defined for the build A VCS root, regardless of what branch build B was built on. Please see the article for more details: https://www.jetbrains.com/help/teamcity/configuring-finish-build-trigger.html
Alternatively, this could happen if A depends on B but B uses a different VCS root and branch ABC exists in B`s root but not in A`s. Could this be the case?