如何防止门控检入将关键字*** NO_CI ***放在注释中 [英] how to prevent an Gated Check-In to put the Keyword ***NO_CI*** in the Comment

查看:340
本文介绍了如何防止门控检入将关键字*** NO_CI ***放在注释中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题与我的问题有关
结合门控检查和连续集成构建在Team Foundation Server 我今天上午发布

感谢@pantelif我知道, code> Gated Checkin Build 构建连续集成防止构建作为(在大多数情况下)预期行为触发。
Team Foundation Server向关键字 *** NO_CI *** 添加了签入注释。



在问题中,您可以找到此处表示有人意外关闭添加此魔法阶段。



我想要的是触发持续集成构建作为预期行为。所以我想避免将关键字放入我的评论。



我不知道,是怎么做的。



我非常感谢任何帮助。


我在网上搜索了一段时间,但我没有找到真正的线索。

解决方案

您可以通过设置 *** NO_CI *** ://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.build.workflow.activities.syncworkspace.nocioption.aspx> NoCIOption 属性的SyncWorkspace工作流活动为false。您可以在这里找到类似的问题和答案



您可以关注此博客 post 来为您的构建定义实现一个参数,或者您可以在Gated CheckIn构建模板中将此属性直接设置为false。


This Question is related to my Question Combining "Gated Checkin" and "Continuious Integration" Builds in Team Foundation Server I Posted this Morning

Thanks to @pantelif I know that after a Gated Checkin Build build Continuous Integration Builds are prevented to be triggered as an (in mostly cases) expected behavior. The Team Foundation Server adds to the Check-In Comment the Keyword ***NO_CI*** to do that.

In the Question you find here there is discribed that someone accidentally turned off adding this Magic Phase.

What I want is triggering Continuous Integration Builds as an expected behavior. So I want to avoid that the Keyword to be put into my Comment.

What I do not know, is how to do it. I searched the Web for a while after my initial Question mentioned above was answereed but found no real clue.

I grateful for any help.

解决方案

You can disable ***NO_CI*** comment by setting the NoCIOption property of the SyncWorkspace workflow activity to false. A similar question and answer can be found here.

You can either follow this blog post to implement a parameter for your build definition, or you can directly set this property to 'false' in your Gated CheckIn build template.

这篇关于如何防止门控检入将关键字*** NO_CI ***放在注释中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆