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

Please add support for the "Abort build if stuck" fields of Build-timeout plugin

      Would be really nice to be able to use config slicer with these config elements.

      here's for an 'absolute' timeout:

      <hudson.plugins.build__timeout.BuildTimeoutWrapper plugin="build-timeout@1.15">
      <strategy class="hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy">
      <timeoutMinutes>40</timeoutMinutes>
      </strategy>
      <operationList/>
      </hudson.plugins.build__timeout.BuildTimeoutWrapper>

          [JENKINS-30775] Please add support for the "Abort build if stuck" fields of Build-timeout plugin

          mdonohue added a comment -

          configurationslicing is built against the 1.8 version of the build timeout plugin, which is from 2011, so it has no notion of the new strategies. These strategies sound more general purpose, so may not lend themselves to slicing - i haven't looked at the build timeout plugin source yet to confirm that though.

          mdonohue added a comment - configurationslicing is built against the 1.8 version of the build timeout plugin, which is from 2011, so it has no notion of the new strategies. These strategies sound more general purpose, so may not lend themselves to slicing - i haven't looked at the build timeout plugin source yet to confirm that though.

          mdonohue added a comment -

          Yes, there is now an object hierarchy around the BuildTimeOutStrategy, which doesn't lend itself well to a simple string representation.
          Using a JSON or XML format may work though. We can serialize the strategy object to JSON, then use the databinding mechanism to read it back in from the slice configuration. I don't think this use-case was intended with Jenkins though, so it might hit some rough spots.

          mdonohue added a comment - Yes, there is now an object hierarchy around the BuildTimeOutStrategy, which doesn't lend itself well to a simple string representation. Using a JSON or XML format may work though. We can serialize the strategy object to JSON, then use the databinding mechanism to read it back in from the slice configuration. I don't think this use-case was intended with Jenkins though, so it might hit some rough spots.

          mdonohue added a comment -

          I went with XStream and XML - you should be able to configure any build timeout field now. This should appear in the 1.45 release of the configuration slicing plugin which just went out.

          mdonohue added a comment - I went with XStream and XML - you should be able to configure any build timeout field now. This should appear in the 1.45 release of the configuration slicing plugin which just went out.

            mdonohue mdonohue
            nneul Nathan Neulinger
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: