The default settings in TFSBuild.proj includes among other things that a Work Item (bug) is created whenever a build failes. This is a very useful feature, but if you do not want it this way it is possible to turn this feature off.
The definition of the CoreCreateWorkItem target in Microsoft.TeamFoundation.Build.targets looks like this:
One of the conditions to run the CoreCreateWorkItem is that the property SkipWorkItemCreation is not set to true. By setting this to true we can simply skip that step. The property is set in the PropertyGroup-section.
The definition of the CoreCreateWorkItem target in Microsoft.TeamFoundation.Build.targets looks like this:
<Target Name="CoreCreateWorkItem" Condition=" '$(SkipWorkItemCreation)'!='true' and '$(IsDesktopBuild)'!='true'" DependsOnTargets="$(CoreCreateWorkItemDependsOn)"> <PropertyGroup> <WorkItemTitle>$(WorkItemTitle) $(BuildNumber)</WorkItemTitle> ... </PropertyGroup> <CreateNewWorkItem TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" BuildNumber="$(BuildNumber)" Description="$(WorkItemDescription)" TeamProject="$(TeamProject)" Title="$(WorkItemTitle)" WorkItemFieldValues="$(WorkItemFieldValues)" WorkItemType="$(WorkItemType)" ContinueOnError="true" /> </Target>
One of the conditions to run the CoreCreateWorkItem is that the property SkipWorkItemCreation is not set to true. By setting this to true we can simply skip that step. The property is set in the PropertyGroup-section.
<PropertyGroup> <SkipWorkItemCreation>true</SkipWorkItemCreation> ... </PropertyGroup>
Comments
Post a Comment