I have this task in publishers after xmllogger:
<exec>
<executable>CheckForWarnings.cmd</executable>
<successExitCodes>0</successExitCodes>
<baseDirectory>C:\Program Files (x86)\CruiseControl.NET\server</baseDirectory>
<buildArgs>all</buildArgs>
</exec>
I’ve verified that this task is returning a non-0 exit code via the ccnet service logs:
2013-01-29 23:21:20,571 [Encompass.2013R1:INFO] Integration complete: Failure – 1/29/2013 11:21:20 PM
So why is the build still green?
Tasks put inside the
publishersection will not change the build result, as they are part of the report (publisher) and not the build (tasks).http://www.cruisecontrolnet.org/projects/ccnet/wiki/Tasks_and_Publishers