Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GenCheckinNotesUpdateWorkItems Task

You can use the GenCheckinNotesUpdateWorkItems task to associate changesets and work items with a specified build. Also, you can use it to update the Microsoft.VSTS.Build.IntegrationBuild field of the work items. The associated changesets and affected work items are those that are committed or affected between the versions specified by the LastLabel and the CurrentLabel properties.

Property

Description

TeamFoundationServerUrl

Specifies the Team Foundation Server URL. For example, http://MyServer:8080.

BuildUri

Specifies the build URI.

BuildNumber

Specifies the Team Foundation Build build number.

CurrentLabel

Specifies the version number label to which the changesets and work items are associated. Typically this is the label of the sources used in the current build.

LastLabel

Specifies the starting version number label from which the changesets and work items are associated. Typically this is the label of the sources used in the previous build.

UpdateWorkItems

Boolean property that specifies whether the Microsoft.VSTS.Build.IntegrationBuild of the associated work items should be updated with the build number. For more information about the Microsoft.VSTS.Build.IntegrationBuild, see Adding Integration Fields in Work Item Types.

The GenCheckinNotesUpdateWorkItems task is defined in the Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll. The Microsoft.TeamFoundation.Build.targets file contains an instance of the GenCheckinNotesUpdateWorkItems task that Team Foundation Build uses as a default implementation for the GetChangeSetsAndUpdateWorkItems target.

The <root>:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild folder on the Team Foundation Build computer contains the Microsoft.TeamFoundation.Build.targets file.

The following example shows the default instance of the GenCheckinNotesUpdateWorkItems task as defined in the Microsoft.TeamFoundation.Build.targets file.

<GenCheckinNotesUpdateWorkItems
    TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
    BuildUri="$(BuildURI)"
    BuildNumber="$(BuildNumber)"
    CurrentLabel="$(LabelName)$(LabelScope)"
    LastLabel="$(LastGoodBuildLabel)"
    UpdateWorkItems="$(UpdateAssociatedWorkItems)"
    ContinueOnError="true" />
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.