On Wed, Aug 21, 2013 at 10:03 AM, Mikael Peigney <[email protected]> wrote:
> My goal is to have the build to be marked as failed, while still having > some of my post-build script run (in fact, all excepting one). > Add the "Publish xUnit test result report" post-build action and point it to the location of the generated junit.xml log file. If you're using the Ant script from PHP Jobs for Jenkins, this should be "build/logs/junit.xml". If not, add "--log-unit junit.xml" to the PHPUnit call in Ant. The action provides configurable failed/skipped tests thresholds that will mark the build as unstable or failed. If I change the failonerror in my Ant task, will it continue to build, > while still marking the build as failed, because there was XUnit errors? > Correct. Change failonerror to "false" so that your Ant build script continues running. David -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
