Snapshot dependencies on github enterprise pull request branches not respecting branch
I have a build chain that has a trigger on pull requests half way down. When the build is triggered, it gathers dependencies from the most recent build above regardless of branch instead of only the same branch. This ONLY happens with pull request builds (refs/pull/*/head and refs/pull/*/merge) but NOT from normal branches, those gather dependencies correctly.
Does anyone know how to get this chain to respect the branch?


Please sign in to leave a comment.
Does the branch specification in the dependent builds also include the pull request branches? For any given build, TeamCity will only trigger a build on the branches that build configuration is tracking in its branch specification. If the branch was passed by something else down the chain, and it doesn't match any, it will run it on the default branch. Could you check whether this is the case for you?
Hi Denis, thanks for your reply.
Yes, all of the builds in the chain are attached to the same project-level VCS root configuration with the same branch specification. I can select the correct branch for each of the steps in the chain when triggering manually.