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
2009-05-11 18:51:43
In other words, "exit 1". :-P
Chris Jester-Young
2009-05-11 18:57:14
+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
2009-05-11 18:57:59