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

Maven surefire timeout treated as successful build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • linux x64, Jenkins LTS 2.60.3, Maven Integration plugin 2.17

      If a project configures surefire to timeout after a reasonable time usingĀ  -Dsurefire.exitTimeout=180 -Dsurefire.timeout=180 and the tests time out you'll see

      [ERROR] There was a timeout or other error in the fork
      [JENKINS] Recording test results

      However Jenkins decides that the tests succeeded and completes the build and all success actions.

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------

      This condition can be simulated by setting an artificially low surefire timeout.

            Unassigned Unassigned
            bondolo Mike Duigou
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: