TFS 2010 Update Template - How to disable automatic creation of work items when assembly fails?

We use an update template for one of our collections, and if it fails, a work item is created. Remember that this is an update template, is there a way to disable this feature? I do not see such an option as in the default template.

+4
source share
2 answers

This is set in TFSbuild.proj if you use the update template (essentially, the update template runs this file, so Team Build behaves the same as TFS 2008). In the proj file you will see a section

<!-- 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 on or delete everything below <!-- WorkItemType..... and add the following

 <!-- Additional Properties --> <SkipWorkItemCreation>true</SkipWorkItemCreation> 
+3
source

It works?

1- Right click assembly definition

2- Change assembly definition

3- Process

4- Expand Advanced

5- Create a work item on failure. Set it to false

+9
source

Source: https://habr.com/ru/post/1433009/


All Articles