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

Maven Build fails when integration/system test executed with failsafe fails.

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • junit-plugin
    • None

      As described in this comment jenkins behaves differently when executing tests with surefire or failsafe: If a test executed with surefire fails the build continues and will be "unstable", if the same test is executed with failsafe the build fails completely (build status "failed").

      Current behaviour: maven build (and jenkins build) fail if a test executed with failsafe fails.
      Expected behaviour: maven build succeeds and jenkins build will be "unstable" if a test executed with failsafe fails.

          [JENKINS-12869] Maven Build fails when integration/system test executed with failsafe fails.

          Miquel Martin added a comment -

          Hi guys,
          I'd like to support this discussion. I agree that this behavior is inconsistent. Does anyone have an explanation?

          Miquel Martin added a comment - Hi guys, I'd like to support this discussion. I agree that this behavior is inconsistent. Does anyone have an explanation?

          puce added a comment -

          +1 Any news on this?

          puce added a comment - +1 Any news on this?

          Tim Gundmann added a comment -

          Any news?

          Tim Gundmann added a comment - Any news?

          Julien Carsique added a comment - - edited

          Not the case anymore (Jenkins 1.578, Maven 3.2.3, maven-failsafe-plugin 2.17). Failsafe and Surefire behave the same.

          Note that with Maven build step in Freestyle jobs, that behavior requires the -Dmaven.test.failure.ignore=true option and the 'Publish JUnit test result report' post build step (JENKINS-24655)

          Julien Carsique added a comment - - edited Not the case anymore (Jenkins 1.578, Maven 3.2.3, maven-failsafe-plugin 2.17). Failsafe and Surefire behave the same. Note that with Maven build step in Freestyle jobs, that behavior requires the -Dmaven.test.failure.ignore=true option and the 'Publish JUnit test result report' post build step ( JENKINS-24655 )

            Unassigned Unassigned
            stefanpenndorf Stefan Penndorf
            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: