[英]TFS 2018 Set Build Task To Only Get a Sub Folder Of The Respository
We have just moved from a TFVC repository to a TFS Git one and I am in the process of moving all of our build definitions to use git. 我们刚刚从TFVC存储库迁移到TFS Git存储库,而我正在将所有构建定义都移至git。 In the build definition, is it possible to set it so that when it gets sources is will get a sub-folder in the repository rather than downloading the entire solution.
在构建定义中,可以对其进行设置,以便在获取源时将在存储库中获得一个子文件夹,而不是下载整个解决方案。
For example in the image below to set the Repository to STARS\\Folder1\\Folder2
例如,在下面的图像中,将存储库设置为
STARS\\Folder1\\Folder2
Our main repository is large and creating some artifacts does not need the entire solution to be downloaded to our TFS server. 我们的主存储库很大,创建一些工件不需要将整个解决方案下载到我们的TFS服务器。
That`s why I like TFVC )) 这就是为什么我喜欢TFVC))
By default Git clones a whole repository ( How do I clone a subdirectory only of a Git repository? ). 默认情况下,Git会克隆整个存储库( 如何仅克隆Git存储库的子目录? )。
But you may try VFS for git tasks . 但是您可以尝试使用VFS执行git任务 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.