Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetBuildProperty task sets the LabeName property for a build.
Parameter |
Description |
---|---|
TeamFoundationServerUrl |
Specifies the Team Foundation Server URL. For example, http://MyServer:8080. |
BuildUri |
Specifies the build URI. |
BuildNumber |
Specifies the build number. |
LabelName |
Specifies the label name. Set the LabelName and LabelScope properties in TFSBuild.proj file to provide a new label name. |
CompilationStatus |
Specifies the compilation status. Valid values are Succeeded, Failed and Unknown. |
DropLocation |
Specifies the drop location. The drop location must be a shared folder to which the build account has read/write privileges. |
Quality |
Specifies the build quality. For more information about build qualities, see How to: Set Build Quality. |
Status |
Specifies the build status. Valid values are NotStarted, InProgress, Succeeded, PartiallySucceeded, Failed, and Stopped. |
TestStatus |
Specifies the test status. Valid values are Succeeded, Failed, and Unknown. |
The SetBuildProperties task is defined in the Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll. The Microsoft.TeamFoundation.Build.targets file contains an instance of the SetBuildProperties task that Team Foundation Build uses as a default implementation for the CoreLabel 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 SetBuildProperties task defined in the Microsoft.TeamFoundation.Build.targets file.
<SetBuildProperties
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
LabelName="$(LabelName)$(LabelScope)" />
How to: Customize Build Numbers