简体   繁体   English

使用svn --depth强制TeamCity仅签出我需要的代码(从多个位置签出)

[英]Force TeamCity To Only Checkout The Code I Need (Checkout From Multiple Places) Using svn --depth

I have an old svn repository with 4+GB of source for trunk. 我有一个旧的svn存储库,其中有4 + GB的中继源。 I'd only like to pull my lib directory, my main project directory, and maybe one or two dependent directories. 我只想提取我的lib目录,我的主项目目录,以及也许一两个从属目录。 I know if I were checking out the things I need, I could be selective in what I want to pull down. 我知道如果我在检查自己需要的东西,我可以选择自己想要的东西。 However, I'm using TeamCity to talk to my SVN server. 但是,我正在使用TeamCity与我的SVN服务器通信。 I want it to just pull down what it needs to build while maintaining the right directory structure, build, and that's it. 我希望它在保持正确的目录结构的同时降低构建所需的内容,仅此而已。 Does anyone know if TeamCity can make use of svn checkout --depth? 有人知道TeamCity是否可以使用svn checkout --depth吗?

Thanks in advance. 提前致谢。

You can make use of VCS Checkout Rules . 您可以使用VCS Checkout Rules For example, if you were to check out only lib directory you could use. 例如,如果仅检出lib目录,则可以使用。

-:.
+:lib

The first line will exclude root dir and the second line will check out lib. 第一行将排除root目录,第二行将检出lib。 You may need to modify the path of lib depending upon its location in SVN and your VCS checkout url. 您可能需要根据lib在SVN中的位置以及您的VCS结帐URL来修改lib的路径。 Check Configuring VCS Roots for more information. 有关更多信息,请参阅配置VCS根目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM