The following example creates and then updates a build step called MyBuildStep. It uses the Id parameter to refer to the build step.
When the first BuildStep task runs, the build report displays the message "My build step is executing." After the second BuildStep task has ran, the succeeded status icon appears next to the build step. For more information, see How to: View a Build Report and Walkthrough: Customizing Team Foundation Build with a Custom Task.
|
<BuildStep TeamFoundationServerUrl=”$(TeamFoundationServerUrl)”
BuildUri=”$(BuildUri)” Name=”MyBuildStep”
Message=”My build step is executing.”>
<Output TaskParameter=”Id” PropertyName=”MyBuildStepId” />
</BuildStep>
<BuildStep TeamFoundationServerUrl=”$(TeamFoundationServerUrl)”
BuildUri=”$(BuildUri)” Id=”$(MyBuildStepId)” Status=”Succeeded” />
|
The following example creates a build step called MyBuildStep without using the Id parameter.
|
<BuildStep TeamFoundationServerUrl=”$(TeamFoundationServerUrl)”
BuildUri=”$(BuildUri)” Name=”MyBuildStep”
Message=”This is a status message.” Status=”Succeeded” />
|