c# - 创建 TFS 自定义 checkin 策略 : Check Comment if it contains certain string

标签 c# tfs visual-studio-2015

已关注 https://blog.devart.com/creating-tfs-custom-check-in-policy-part-1.html

我已经添加了注册表项和值,但是看不到正在应用的门控策略。

我还启用了门控 checkin 策略,允许在 TFS 上构建每次 checkin 。

我假设 TFS 应该在显示 gated-checkin 弹出窗口之前阻止您(根据当前正在实现的策略显示警告/错误)。

如有任何帮助,我们将不胜感激。

最佳答案

是的,入住政策是一个警告,如下图所示。仅当存在未决更改且不符合策略时。 Visual Studio 将生成一个名为 Policy Warnings 的行:

The following check-in policies were not satisfied:

You must .......

enter image description here

如果您忽略警告并坚持 checkin ,您将失败并且没有任何 checkin 。

enter image description here

只有在您满足 checkin 政策后,门控 checkin 对话框才会弹出并要求您构建。一旦构建通过验证,您的本地待定更改将最终被 checkin 。

enter image description here


如果您的自定义 checkin 策略不起作用,请确保它已添加到源代码管理设置中并已启用。

enter image description here

希望一切都清楚。

关于c# - 创建 TFS 自定义 checkin 策略 : Check Comment if it contains certain string,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58512623/

相关文章:

c# - 选项预检未在 jQuery 中处理

c# - 构造函数测试方法

visual-studio-2010 - 什么是允许根据每个客户轻松定制产品的良好解决方案结构?

c# - MVC 6 中的 JsonResult 未收到任何响应

c# - 无法在 Visual Studio 2015 中加载文件或程序集 'System.Memory, Version=4.0.1.'

c# - 具有 2FA : List of Trusted Browsers 的 Asp.Net 身份

c# - 什么开源 C# 库可以读/写微型 QR 码?

tfs - TFS 2010 上的 Conchango 与 MS 敏捷模板

tfs - 更改 TFS 2018 的默认语言

tfs - 团队基础服务器 : HTTP code 400 - Bad Request