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

      In case of timeout, it would be interesting being able to run some command; for instance, get a dump of the frozen thread.

      Allow to add execution of a command (eg. pgrep -n -f surefire | xargs jstack) before thread interruption on timeout.

          [JENKINS-12744] Execute a command before timeout

          Julien Carsique added a comment - https://github.com/jenkinsci/build-timeout-plugin/pull/10

          Norman Seidel added a comment -

          Exactly what we need / would like to have (thread dump).

          Norman Seidel added a comment - Exactly what we need / would like to have (thread dump).

          You can build and test it from https://github.com/jcarsique/build-timeout-plugin ; at Nuxeo, we are using it for a few months now.

          Julien Carsique added a comment - You can build and test it from https://github.com/jcarsique/build-timeout-plugin ; at Nuxeo, we are using it for a few months now.

          Philip Arickx added a comment -

          I have this exact issue : the need to be able to dump stack traces before hanging test threads are killed.

          I can't see any way in Jenkins+Pipelines to achieve this - am I missing something ?

          Any chance this issue will be picked up ? I'm forced now to disable timeouts in a number of builds because of this.

          Philip Arickx added a comment - I have this exact issue : the need to be able to dump stack traces before hanging test threads are killed. I can't see any way in Jenkins+Pipelines to achieve this - am I missing something ? Any chance this issue will be picked up ? I'm forced now to disable timeouts in a number of builds because of this.

            kohsuke Kohsuke Kawaguchi
            jcarsique Julien Carsique
            Votes:
            11 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: