Keith
Keith

Reputation: 2019

TeamCity: How to setup a build with two VCS roots

I have two separate projects from two separate TFS VCS roots that I want to be part of the same build and was wondering if this is possible.

Project 1

VCS Root: $/ProductName/Development/Project1

Build file path: API/API.sln

Project 2:

VCS Root: $/QA/Test/Tools/Project2

Build file path: Test/Test.sln

I want step #1 of the build to compile Project 1, and step #2 to compile Project 2. How can I do this if the build file path is relative to the VCS root/checkout directory and the solutions are from two different VCS roots?

Thanks in advance!

Upvotes: 15

Views: 13508

Answers (1)

guenhter
guenhter

Reputation: 12167

it is possible to have two VCS Roots and change the checkout folder of them (so not check out both in the root folder). For that, change the "Checkout Rule" on our "VCS Roots" dialog and add for your project:

For Project1:

+:.=>project1

And for Project2:

+:.=>project2

Than you get this structure in the root:

root
  - project1
  - project2

Upvotes: 26

Related Questions