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

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

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: