0
votes

In my project we use feature branches with TFS 2013 as source control repository and TeamCity 9.1.6 as CI server. We have plans to upgrade to TFS 2015 soon (... and cannot migrate to GIT)

I know you can use multiple branch specification when you use GIT or Mercurial... and it is pretty useful. In TFS 2013, Microsoft added native support for GIT.

multiple branch specification picture

I want to do multiple branch specification using my existing TFS server, in order to have a single commit build that builds every feature branch.

So my questions are:

  1. Is there any TeamCity plugin that allow me to do that? (Easier than my possible GIT-TFS trick)
  2. Given that TFS 2013 has GIT support, can I configure my VCS to make TeamCity build think TFS is a GIT server and use multiple branch specification as explained here?

In theory TeamCity VCS connecting to TFS as a GIT server will think it is a GT server, won't it?

2

2 Answers

1
votes

No additional plugin is needed. You can configure Git connection in TeamCity to Git repository hosted in Team Foundation Server 2013. The type of repository will be "Git" in TeamCity, so all git-related features (such as branches) will be supported.

1
votes

TFS 2013 provides the option to use either TFVC or Git for your source control repository. When you create a team project, select Git from the version control options:

enter image description here

More information of using Git, please check: https://www.visualstudio.com/en-us/docs/git/get-started