views:

109

answers:

2

I have a batch file that is running inside CruiseControl an outputing either "Pass" or "Fail". How can I manage CruisContorl so the build fails if the output of my batch file is Fail???

+2  A: 

If the return value of the batch file is non-zero, the build will report as having failed.

John Weldon
In other words, "exit 1". :-P
Chris Jester-Young
+1  A: 

in your ant script use the failonerror flag:

<exec executable="xxx" failonerror="true">

The executable (script) needs to signal failure by setting an non zero return code (call to exit)

lothar