设置TeamCity来将多个git repos与指定位置相关联 [英] setting up TeamCity to pull multiple git repos with named locations
问题描述
我在创建一个依赖两个git repos的TeamCity项目构建时遇到了问题。特别是,小学中的内容依赖共享回购。这是不理想的,需要改变(也就是将所有共享组件推入nuget),但首先要做的是。
构建机器需要两个兄弟签出文件夹:'Project '和'分享'。然后,从'Project'文件夹中,我想开始一个耙子任务。
Teamcity似乎将第一个'Project'回购,检出到/ work文件夹然后将其删除并用共享回购中的结账替换它。
有关如何正确拉取这些信息的任何想法?
谢谢,
-Steve
我发现我可以通过移动整个树
+:。=> ;.在存储库定义中设置VCS Root'Checkout rules'。 /共享
这个规则有效地说对于这个存储库的根文件夹和它下面的所有东西,移动它所有的文件夹名为'Shared'。
然后,我为'Project'回购做同样的事,把它移到'Project'文件夹中,我现在有两个离散在构建时在工作区下设置兄弟文件夹。I am having a problem creating a TeamCity project build that relies on two git repos. In particular, there is content in a primary that relies on a shared repo. This isn't ideal and needs to change (aka pushing all shared components into nuget), but first things first.
The build machine needs two sibling checkout folders: 'Project' and 'Shared'. Then, from the 'Project' folder, I want to kick off a rake task.
Teamcity seems to pull the first 'Project' repo, checksout to the /work folder then deletes it and replaces it with a checkout from the 'Shared' repo.
Any ideas on how to get this pulling properly?
Thank you, -Steve
I found that I can move the entire tree by setting the VCS Root 'Checkout rules' on the repository definition by using the following rule entry:
+:.=>./Shared
This rule says effectively "for the root folder of this repository and everything under it, move it all under a folder called 'Shared'.
I then do the same for the 'Project' repo, moving it to the 'Project' folder and I now have two discrete sibling folders setup under the workspace at build time.
这篇关于设置TeamCity来将多个git repos与指定位置相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!