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

Build Timeout plugin does not mark build as failed even when option is selected

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • build-timeout-plugin
    • None
    • This is happening with version 1.7 of the plugin. I believe it used to work earlier, but I have not verified.

      Jenkins version is 1.408

      Build Timeout plugin does not mark build as failed even when option is selected. The build is aborted (grey) instead of failed (red)

      Configuration:

      <buildWrappers>
      <hudson.plugins.build__timeout.BuildTimeoutWrapper>
      <timeoutMinutes>3</timeoutMinutes>
      <failBuild>true</failBuild>
      </hudson.plugins.build__timeout.BuildTimeoutWrapper>
      </buildWrappers>

      Console output:

      Started by user pickgr
      Building on master
      No emails were triggered.
      [workspace] $ /bin/bash -xe /tmp/tomcat6-tmp/hudson6264385044870732732.sh
      + hostname
      srsdclljkns01
      + echo 'This is a test build'
      This is a test build
      + sleep 300
      Build timed out (after 3 minutes). Marking the build as failed.
      /tmp/tomcat6-tmp/hudson6264385044870732732.sh: line 4: 2656 Terminated sleep 300
      No emails were triggered.
      Finished: ABORTED

          [JENKINS-9548] Build Timeout plugin does not mark build as failed even when option is selected

          dup 9203

          Graham Menhennitt added a comment - dup 9203

          This issue related to Result.isWorseThan() : as the build is set to ABORTED, it can't later be switched to FAILURE

          Nicolas De Loof added a comment - This issue related to Result.isWorseThan() : as the build is set to ABORTED, it can't later be switched to FAILURE

          fixed at 5488c0cf16fd49dcf0bb3a73156faa18bea49a17

          Nicolas De Loof added a comment - fixed at 5488c0cf16fd49dcf0bb3a73156faa18bea49a17

            kohsuke Kohsuke Kawaguchi
            pickgr1 pickgr
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: