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

      Print thread dump when halting build due to time out. This may ease troubleshooting the cause of the time out.

          [JENKINS-19883] Thread dump when a build time out

          With the timeout action available now, you can run a system groovy script to print a stack trace.

          Walter Kacynski added a comment - With the timeout action available now, you can run a system groovy script to print a stack trace.

          Vlad Rozov added a comment -

          I can't find a system groovy script to print a stack trace, so I used the following shell script that relies on the knowledge that the timeout is caused by the unit test fired by maven surefire plugin.

          pgrep -n -f surefire | xargs jstack

          Vlad Rozov added a comment - I can't find a system groovy script to print a stack trace, so I used the following shell script that relies on the knowledge that the timeout is caused by the unit test fired by maven surefire plugin. pgrep -n -f surefire | xargs jstack

            kohsuke Kohsuke Kawaguchi
            thomaskatalis Thomas Santosa
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: