setting up TeamCity to pull multiple git repos with named locations

霸气de小男生 提交于 2019-12-04 04:50:26
S. Hebert

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.

I did not get much from your question. What I understood is that you have code in 2 repos and you want to pull them into a single folder. In such situation I would either use git submodules or git subtree merge.

Reference at http://git-scm.com/book/en/Git-Tools-Submodules

Submodules: Chapter 6.6

Subtree Merging: Chapter 6.7

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