TeamCity: How to setup a build with two VCS roots

≡放荡痞女 提交于 2019-12-20 12:16:08

问题


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!


回答1:


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


来源:https://stackoverflow.com/questions/17033122/teamcity-how-to-setup-a-build-with-two-vcs-roots

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!