I have a batch file that runs inside CruiseControl and outputs either "Pass" or "Fail". How can I manipulate CruiseContorl so that the build fails if the output of my batch file is "Fail"?
If the return value of the command file is nonzero, the assembly will fail.
in your ant script use the failonerror flag:
<exec executable="xxx" failonerror="true">
The executable file (script) should signal an error by setting a non-zero return code (call to exit)