Failing a TFSBuild when fbcmd stops with an error

I continue to get "partially succeeded" builds with TFS2010 when FBcmd stops the build with an error.

I need TFS to report the build as a failure, rather than a partial success.   What settings do I need?

I using TFS2010, we are running FBCmd via the tfsbuild.proj.   We do not want to move to the workflow style builds.

on FB 7.0.0.1065

   

 

 

      ProjectFile="$(SolutionRoot)\..\BuildType\xxxxxx_Dev.fbp7" 

 

 

      AllowInteractive="False" 

 

 

      DontWriteToLog="False" 

 

 

      StopIfFBFails="True" 

 

 

      ShowBanner="False" 

 

 

      FBVersion="-1" 

 

 

      Variables="BuildNumber=$(BuildNumber);DropLocation=$(DropLocation);FlavorToBuild=%(ConfigurationToBuild.FlavorToBuild);PlatformToBuild=%(ConfigurationToBuild.PlatformToBuild)"

 

 

      />

 

Hi Alex,
Although it’s possible to get TFS2010 and FinalBuilder working without using windows workflow, it’s not a configuration we support. None of the extension points that we used with TFS2005/8 to create the .proj work with 2010, and as a result we don’t have really have any control over the interaction.

That said, this article might help: http://blogs.msdn.com/b/aaronhallberg/archive/2007/11/05/how-to-fail-a-build-when-tests-fail.aspx. Although focused on test results I suspect the solution (setting CompilationStatus) will work with FB.

Cheers,

Ben

so how can I get a return value from FBcmd that FB stopped, due to failure?




or can I call back to msbuild from the FB failure section?

Hi Alex,
Can you send your full tfproj to support at finalbuilder.com? I’ll have a dig around and see if I can work out the best way to get it working.

Cheers,

Ben