本文介绍了TeamCity的:如何设置有两个VCS根构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有,我想是同一版本的一部分两个独立的TFS VCS根两个单独的项目,并想知道,如果这是可能的。

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.

项目1

VCS根:$ /产品名称/开发/ PROJECT1

VCS Root: $/ProductName/Development/Project1

构建文件路径:API / API.sln

Build file path: API/API.sln

项目2:

VCS根:$ / QA /测试/工具/ Project2的

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

构建文件路径:测试/ Test.sln

Build file path: Test/Test.sln

我要构建的步骤#1编译项目1和第2步编译项目二,如何才能做到这一点,如果构建文件路径是相对于VCS根/结帐目录和解决方案是从两个不同的VCS根源是什么?

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?

在此先感谢!

推荐答案

有可能有两个VCS根和改变他们的结账文件夹(所以不能同时在根文件夹退房)。为此,我们的根VCS对话框中更改结帐规则,并添加为您的项目:

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:

有关PROJECT1:

For Project1:

+:.=>project1

和Project2的为:

And for Project2:

+:.=>project2

比你在根得到这样的结构:

Than you get this structure in the root:

root
  - project1
  - project2

这篇关于TeamCity的:如何设置有两个VCS根构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 01:49