CruiseControl error

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"?

+1


a source to share


2 answers


If the return value of the command file is nonzero, the assembly will fail.



+3


a source


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)

+1


a source







All Articles