TeamCity. Working with multiple VCS roots
Answered
We have a TC build with e2e tests. So, we need to pull a rep with application, few with components and one with autotests, but, unfortunately, in TC by default (I guess), we can configure branch (in "run") only for one rep. Can we somehow configure it to choose multiple branches?
We have one decision (far from even good): pull branches in build steps and use parameters to set necessary branches. In this case we would need to print branch names into this fields, so can we at least get branch list into parameters fields?
Please sign in to leave a comment.
Hello Alexander,
At the moment it's not possible to choose different VCS branches for several VCS roots. Please vote for the request: https://youtrack.jetbrains.com/issue/TW-26447.
As workaround you can do that by defining the branch to checkout as a configuration parameter and defining the parameter in the Run Custom Build dialog. Will it work for you?
Well, already done. And the main question is: can we somehow get list of branches from git and put it to this fields? Because for now we must print branch names via keyboard (well more likely via exchange buffer, but you know :) ).
Hello,
No, at the moment there is no special parameter that lists all branches. Perhaps you can create an external script that will periodically update the parameter value via REST API.