简体   繁体   English

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

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

We are using the upgrade template for one of our builds and when it fails it creates a work item.我们正在为我们的一个构建使用升级模板,当它失败时,它会创建一个工作项。 Keeping in mind this is the upgrade template, is there anyway to turn this functionality off?请记住这是升级模板,无论如何要关闭此功能? I don't see the option like I do in the default template.我没有像在默认模板中那样看到该选项。

Does this work?这行得通吗?

1- Right click on build definition 1-右键单击构建定义

2- Edit Build definition 2- 编辑构建定义

3- Process 3-过程

4- Expand advanced 4- 扩展高级

5- Create work item on failure. 5- 在失败时创建工作项。 Set it to false将其设置为假

This is set in the TFSbuild.proj if youre using the upgrade template (essentially the upgrade template just runs this file, so Team Build behaves just like TFS 2008).如果您使用升级模板,这将在 TFSbuild.proj 中设置(本质上升级模板仅运行此文件,因此 Team Build 的行为与 TFS 2008 类似)。 In the proj file you will see a section在 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>

You can either comment out or delete everything below <!-- WorkItemType..... and add the following您可以注释掉或删除<!-- WorkItemType.....下面的所有内容并添加以下内容

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

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

相关问题 启用“在失败时创建工作项”时,TFS 2010构建会给出WorkItemStore错误 - TFS 2010 Build gives WorkItemStore error when Create Work Item on Failure is enabled 在TFS 2010中创建构建定义时,构建过程模板不可见 - Build process template not visible when creating build definition in TFS 2010 TFS 2015.2具有自定义构建任务的工作项创建问题 - TFS 2015.2 Work Item Creation Issue with custom build task 如何将字段定义规则绑定到自定义TFS 2010工作项模板的广告组? - How do I bind a field definition rule to an AD Group for a custom TFS 2010 Work Item Template? TFS 2010-限制自定义工作项模板的能力 - TFS 2010 - restrict ability to customize Work Item Template TFS 2010工作项-工作项链接 - TFS 2010 work item - Work item links 使用升级模板将 TFS 2008 构建定义升级到 TFS 2012 构建定义,排队构建时出错 - Upgraded TFS 2008 build definitions to TFS 2012 build defs using Upgrade Template, errors when queueing builds 如何设置TFS 2010在构建失败时发送电子邮件? - How to setup TFS 2010 to send emails whenever a build fails? 使用TfsDeployer在添加工作项时发送通知 - TFS 2010 - Using TfsDeployer to send notifications when work item is added - TFS 2010 从TFS 2010升级到TFS 2013:流程模板更改 - TFS 2010 to TFS 2013 Upgrade: Process Template Change
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM