问题描述
我将 TFS2010 与门控签入一起使用,即使我已将Associate Chagesets and Work Items"设置为 false,变更集和工作项仍与此构建相关联.
I am using TFS2010 with gated check-ins, and even though I have set "Associate Chagesets and Work Items" to false, changesets and work items are associated with this build.
这只发生在门控构建上.如果我使用其他签入触发器(手动、连续、计划)运行构建,除非关联变更集和工作项"设置为 true,否则变更集和工作项不会与构建关联.
This happens only on gated builds. If I run build with other check-in triggers (manual, continuous, schedule), changesets and work items are not associated with the build unless "Associate Changesets and Work Items" is set to true.
任何想法为什么会发生这种情况?我正在使用带有默认工作流定义的 Visual Studio Scrum 流程模板.也许工作流定义有问题?
Any ideas why this is happening? I'm using Visual Studio Scrum process template with default workflow definitions. Maybe there is problem in workflow definition?
推荐答案
Gated-CheckIn 构建默认与签入变更集和相关工作项相关联.此布尔参数决定非 Gated-CheckIn 构建是否应关联变更集和工作项.
Gated-CheckIn builds are associated with the check-in changeset and the related work items by default. This Boolean parameter decides whether a non-Gated-CheckIn build should have the changesets and work items associated.
如果您查看默认模板,您会看到当此参数设置为 true 时调用 AssociateChangesetsAndWorkItems 活动,因为构建原因不是 Gated-CheckIn.显示名称表示:为非货架集构建关联变更集和工作项".
If you look at the default template, you'll see the AssociateChangesetsAndWorkItems activity is invoked when this parameter set to true the the build reason is not Gated-CheckIn. The display name says it: "Associate Changesets and Work Items for non-Shelveset Builds".
我认为此参数的描述具有误导性.它说:将此设置为 true 以将变更集和工作项与构建相关联".它应该说到非门控检入构建".
I think the description of this parameter is misleading. It says: "Set this to true to associate changesets and work items to the build". It should say "to the non-gated-checkin build".
这篇关于门控签入始终将工作项与构建相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!