简体   繁体   English

TFS 2018将构建任务设置为仅获取存储库的子文件夹

[英]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.

相关问题 在一个特定的TFS 2018 Release环境中,如何获取用于TFS 2018构建的git源代码? - How can I get the git source code used for a TFS 2018 build during one specific TFS 2018 Release environment? Git身份验证仅适用于TFS 2018 - Git authentication failing to TFS 2018 only TFS 2017的“获取资源”任务始终清除构建工件 - TFS 2017 Get Sources task always clean build artifacts 如何在构建任务TFS中编辑/更新默认的获取源步骤? - How to edit/update default Get Sources step in build task TFS? VSTS / TFS Build仅在提交并推送Git标记时运行NPM任务 - VSTS / TFS Build only run NPM task when Git tag is committed and pushed 在TFS 2015构建代理文件夹中找不到git文件夹 - Can't find git folder in TFS 2015 build agent folder 你直接在 Github 资源库文件夹中工作吗? - Do you work directly in the Github respository folder? 如何从本地TFS服务器2018使用REST Api获取多个提交? - How to GET multiple commits with REST Api from an on-premises TFS server 2018? Visual Studio 2017 Enterprise + TFS 2018 + Git Clone = 无法获得本地颁发者证书 - Visual Studio 2017 Enterprise + TFS 2018 + Git Clone = Unable to get local issuer certificate 将 git 与 TFS 一起使用时如何包含 NuGet 包“build”文件夹 - How to include NuGet packages "build" folder when using git with TFS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM