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

allow time limit to be specified for build step

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • build-timeout-plugin
    • None

      It would be nice to be able to specify a time limit for a build step. This would be useful to prevent e.g. tests that never complete. It would probably be under an "Advanced" button on each build step in a project's config. By default, there would be no limit (perhaps a magic value of zero could mean no limit). The units would probably be seconds or minutes.

          [JENKINS-8900] allow time limit to be specified for build step

          dp added a comment -

          Would the build timeout plugn do what you want? http://wiki.hudson-ci.org/display/HUDSON/Build-timeout+Plugin

          dp added a comment - Would the build timeout plugn do what you want? http://wiki.hudson-ci.org/display/HUDSON/Build-timeout+Plugin

          Thanks dp. The build timeout plugin is almost what we want, but not quite. It would be really nice if it could be applied to individual build steps only.

          Our Jenkins job consists of a build step to compile the project, and another build step to run some tests on it. The compilation step can take anywhere between one minute and two hours (depending on what needs to be built). It's very reliable and so doesn't need a timeout. The test step should take a few minutes, but sometimes gets hung up. We would like to have a timeout on that step only. The build timeout plugin doesn't allow a timeout to be set on an individual step. So, we'd need to set a timeout for the whole project of the order of three hours to allow for the longest compilation time. But that would mean that, if the compilation only takes a few minutes and the tests hang up, we'd waste three hours before we found out. I suppose I could split the project into two and have the test project depened on the compilation project and then set a timeout on the latter only.

          Graham Menhennitt added a comment - Thanks dp. The build timeout plugin is almost what we want, but not quite. It would be really nice if it could be applied to individual build steps only. Our Jenkins job consists of a build step to compile the project, and another build step to run some tests on it. The compilation step can take anywhere between one minute and two hours (depending on what needs to be built). It's very reliable and so doesn't need a timeout. The test step should take a few minutes, but sometimes gets hung up. We would like to have a timeout on that step only. The build timeout plugin doesn't allow a timeout to be set on an individual step. So, we'd need to set a timeout for the whole project of the order of three hours to allow for the longest compilation time. But that would mean that, if the compilation only takes a few minutes and the tests hang up, we'd waste three hours before we found out. I suppose I could split the project into two and have the test project depened on the compilation project and then set a timeout on the latter only.

          Domas Puras added a comment -

          Increased priority. It would be nice to know when the feature is going to be implemented.

          Domas Puras added a comment - Increased priority. It would be nice to know when the feature is going to be implemented.

          Craig Ringer added a comment -

          Domas, generally features get implemented when someone puts in the time to implement them, or funds their implementation.

          Craig Ringer added a comment - Domas, generally features get implemented when someone puts in the time to implement them, or funds their implementation.

          Jesse Glick added a comment -

          I suggest this be closed as will not fix. You can get this effect using the timeout step in Workflow.

          Jesse Glick added a comment - I suggest this be closed as will not fix. You can get this effect using the timeout step in Workflow.

          Alexander A added a comment -

          Alexander A added a comment - Was fixed:  https://github.com/jenkinsci/build-timeout-plugin/pull/61/

            Unassigned Unassigned
            gfim Graham Menhennitt
            Votes:
            8 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: