Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13755

Add option to continue, even if the java exit code is not 0

      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

          [JENKINS-13755] Add option to continue, even if the java exit code is not 0

          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

          Gregory Boissinot added a comment - 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

            gbois Gregory Boissinot
            spyhunter99 alex o
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: