繁体   English   中英

TFS 2010 升级模板 - 如何在构建失败时关闭自动工作项创建?

[英]TFS 2010 Upgrade template - How to turn off automatic work item creation when the build fails?

我们正在为我们的一个构建使用升级模板,当它失败时,它会创建一个工作项。 请记住这是升级模板,无论如何要关闭此功能? 我没有像在默认模板中那样看到该选项。

这行得通吗?

1-右键单击构建定义

2- 编辑构建定义

3-过程

4- 扩展高级

5- 在失败时创建工作项。 将其设置为假

如果您使用升级模板,这将在 TFSbuild.proj 中设置(本质上升级模板仅运行此文件,因此 Team Build 的行为与 TFS 2008 类似)。 在 proj 文件中,您将看到一个部分

<!-- Additional Properties -->

<!--  WorkItemType
 The type of the work item created on a build failure. 
 -->
<WorkItemType>Bug</WorkItemType>

<!--  WorkItemFieldValues
 Fields and values of the work item created on a build failure.

 Note: Use reference names for fields if you want the build to be resistant to field name 
 changes. Reference names are language independent while friendly names are changed depending 
 on the installed language. For example, "System.Reason" is the reference name for the "Reason" 
 field.
 -->
<WorkItemFieldValues>System.Reason=Build Failure;System.Description=Start the build using Team Build</WorkItemFieldValues>

<!--  WorkItemTitle
 Title of the work item created on build failure.
 -->
<WorkItemTitle>Build failure in build:</WorkItemTitle>

<!--  DescriptionText
 History comment of the work item created on a build failure. 
 -->
<DescriptionText>This work item was created by Team Build on a build failure.</DescriptionText>

<!--  BuildLogText
 Additional comment text for the work item created on a build failure.
 -->
<BuildlogText>The build log file is at:</BuildlogText>

<!--  ErrorWarningLogText
 Additional comment text for the work item created on a build failure. 
 This text will only be added if there were errors or warnings.
 -->
<ErrorWarningLogText>The errors/warnings log file is at:</ErrorWarningLogText>

<!--  UpdateAssociatedWorkItems
 Set this flag to enable/disable updating associated workitems on a successful build.
 -->
<UpdateAssociatedWorkItems>true</UpdateAssociatedWorkItems>

您可以注释掉或删除<!-- WorkItemType.....下面的所有内容并添加以下内容

<!-- Additional Properties -->
<SkipWorkItemCreation>true</SkipWorkItemCreation>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM