-
Improvement
-
Resolution: Fixed
-
Major
if you run a netbeans created ant script and a unit test fails, the java exit code is 1 which will completely halt the jenkins build process. A unit test failure may or not be critical issue and it should at least be an option to ignore the process's exit code
In my option, Jenkins doesn't have to be in charge of the exit code.
To ignore test in failure with Ant, just check the haltonfailure of the Junit task is set to false (http://ant.apache.org/manual/Tasks/junit.html).
You are able to use the xUnit Jenkins plugin to set the build status to fail or unstable if the number of failed tests exceed a specified value (threshold feature).
https://wiki.jenkins-ci.org/display/JENKINS/xUnit+Plugin