在本地 TFS 2015 Update 3 中是否有仅监视子文件夹(在给定的 git 存储库中)?
Is there a sub-folder only monitoring (in a given git repo) in on-premises TFS 2015 Update 3?
我们想在给定的 git 存储库中托管多个项目,并对 CI 进行子文件夹级别的监控。例如:
在名为 "Foo" 的 git 存储库中,我们希望有以下项目:
- Foo.Library1(想用 CI 发布名为 Foo.Library1 的 nuget 库)
- Foo.Library2(想用 CI 发布名为 Foo.Library2 的 nuget 库)
但是当我检查 Library2 的代码时,我不想 CI Foo.Library1 启动,反之亦然。
有人告诉我这在 TFS 2015 Update 3(本地版本)中是不可能的。
有人可以证实或反驳吗?如果反驳,能否请您提供如何处理的步骤?
是的,无法将 CI 触发器 限制到 TFS 2015 Update3[=20= 上的存储库中的特定文件夹]. Microsoft UserVoice 站点上有一个功能请求并已完成:
Allow GIT CI Builds to monitor changes only in a specific
subdirectory of a Repo
This feature will ship in TFS 15 and is already available on VSTS
https://www.visualstudio.com/en-us/docs/build/news/2016#june-14.
Team Services Group (Product group, Microsoft Visual Studio) responded · August 23, 2016
然后您可以在 TFS15 和 VSTS 上使用 路径过滤器 来完成。详情请参考:GIT filter
我们想在给定的 git 存储库中托管多个项目,并对 CI 进行子文件夹级别的监控。例如:
在名为 "Foo" 的 git 存储库中,我们希望有以下项目:
- Foo.Library1(想用 CI 发布名为 Foo.Library1 的 nuget 库)
- Foo.Library2(想用 CI 发布名为 Foo.Library2 的 nuget 库)
但是当我检查 Library2 的代码时,我不想 CI Foo.Library1 启动,反之亦然。
有人告诉我这在 TFS 2015 Update 3(本地版本)中是不可能的。
有人可以证实或反驳吗?如果反驳,能否请您提供如何处理的步骤?
是的,无法将 CI 触发器 限制到 TFS 2015 Update3[=20= 上的存储库中的特定文件夹]. Microsoft UserVoice 站点上有一个功能请求并已完成:
Allow GIT CI Builds to monitor changes only in a specific subdirectory of a Repo
This feature will ship in TFS 15 and is already available on VSTS https://www.visualstudio.com/en-us/docs/build/news/2016#june-14.
Team Services Group (Product group, Microsoft Visual Studio) responded · August 23, 2016
然后您可以在 TFS15 和 VSTS 上使用 路径过滤器 来完成。详情请参考:GIT filter