You can return anything non zero. Or you could throw an error, either
will work.

On Sep 29, 10:42 am, Dave <[EMAIL PROTECTED]> wrote:
> This may seem a little strange, but in certain scenerios I would like
> to make my build fail.
>
> For example:
> We currently have unit tests that we run against code as part of our
> build process. These tests are in binaries, and once run report
> failures and success in an xml file. What I would like to do is write
> a script to parse the output and if it encounters "Failure"  I would
> like the build to fail and have the failing output include information
> from the xml file written by the unit test.
>
> Does anyone know what I would need to raise or return in order for
> CruiseControl to understand there was a failure and that it needs to
> stop building and report a failure?

Reply via email to