1
votes

I have a build which consumes source code from two git repositories. The first vcs root contains reusable build scripts from the master branch of a git repository. The second vcs root contains the code I'm compiling from a develop branch in a different vcs root and different git repository from the first.

In the teamcity UI, my build shows as having run on a default branch. How can I configure teamcity to show the develop branch (from the second vcs root) as the logical branch name since this is really the branch name that makes most sense for developers looking at the teamcity UI.

I am running TeamCity 8.1.5.

2

2 Answers

3
votes

I posted this same issue on JetBrain's youtrack website and according to TeamCity devs it cannot be done in the current version.

https://youtrack.jetbrains.com/issue/TW-40664

0
votes

Teamcity shows the "branch name" if you have a variable for branch name which is used in the "VCS settings " for your first repo. There are 2 things to understand here

  1. If you do not want the branch name for the first repo to be shown, hardcode it to a value rather than parameterising it.
  2. Parameterize the branch name for the second repo.
  3. In case, the develop branch is still not shown switch the order in which you have defined the "VCS roots" in your build targets