How will you check whether automated build is successful and call a custom task on successful build?

Sunday, September 13, 2009


You can do that by providing the following config entry in the MS Build or TFS Build config file,
<GetBuildProperties TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildUri)"
Condition=" '$(IsDesktopBuild)' != 'true' ">
<Output TaskParameter="CompilationSuccess" PropertyName="LocalCompilationSuccess" />
</GetBuildProperties>




<Exec Condition="'$(LocalCompilationSuccess)'=='true'" Command="do_the_voodoo"/>


www.codecollege.NET

LinkWithin

Blog Widget by LinkWithin

Recommended Books