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

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

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          gbois 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

          Show
          gbois 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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: