Using parameter in VCSRoot still picking up master in dependent builds
I have a pipeline where I've overridden two VCSRoots to enable any branch to be built. They default to a separate parameter that is itself defined as master so that the unchanged behaviour is that master is built.
Dependent builds in the pipeline redefine the parameter as %dep.<buildA>.<parameter>%.
When running a custom build, the code from the branch is taken and built, but when the dependent build in the pipeline is run, it claims that the parameter is set correctly yet always fetches master.
Is there a way of making sure the same branch is pulled all the way through?
Please sign in to leave a comment.
Hi, and sorry for the delay. Which TeamCity version are you using?
Also, is there a reason for you not to setting up the additional branches in the "Branch specification" field, instead of changing the default branch via parameters? That will allow you to keep track of the branches separately, it should consistently trigger the same branch through dependencies and allows you to choose branch when running a custom build.