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

run custom shell script on Build timeout as pre-on-timeout hook

XMLWordPrintable

      Hi,
      Is that possible to allow running shell script/inline command before taking action when timeout occures (action like fail/abort).

      The use-case for this request is to extract stacktraces with "gstack" or "gdb" from hanging job before build-timeout aborts it?

      Also, as addition pre-ontimeout action, plugin can send email to specific address and wait for some sentinel file to be removed by user. This will allow developer to connect to the hanging job, examine/debug hang, remove sentinel file and job will resume abort/fail routine.

      Thanks

            kohsuke Kohsuke Kawaguchi
            dubman Mike Dubman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: