I can’t see my custom build steps in the list of build steps during a team build.

by Donovan Brown 14. July 2009 12:01

Problem:

I can’t see my custom build steps in the list of build steps during a team build.

Solution:

Use BuildStep element in tfsbuild.proj file.

Code:

<Target Name="MyCustomTarget">
  
<
BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Name="TestBuildStep" Message="Running BVTs">
      <
Output TaskParameter="Id" PropertyName="TestBuildStepId" />
   </
BuildStep>

. . .

   <BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Id="$(TestBuildStepId)" Status="Succeeded" />
   <
OnError ExecuteTargets="OnTestTargetFail" />
</
Target>

<Target Name="OnTestTargetFail">
   <
BuildStep TeamFoundationServerUrl="$(TeamFoundationServerUrl)" BuildUri="$(BuildUri)" Id="$(TestBuildStepId)" Status="Failed" />
</
Target>

Explanation:

Now when I run my builds I can see my custom steps with a Play icon while running and a check or X when finished.  As you can see below you can see the Running BVTs build step.  The “Copying files to IIS.” was also added this way.





Additional information about the BuildStep element can be found here http://msdn.microsoft.com/en-us/library/bb399129.aspx 

Tags: ,

Work

Pingbacks and trackbacks (1)+

About the author

My name is Donovan Brown and I am a process consultant for Imaginet with a background in application development.  I also run one of the Nation’s fastest growing online registration sites for motorsports events DLBRacing.com.  When I am not writing software I race cars for fun.  DLBRacing.com has given me the opportunity to combine my two passions writing software and racing cars.

AdSense

Month List

AdSense