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

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

      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

          [JENKINS-24279] run custom shell script on Build timeout as pre-on-timeout hook

          Mike Dubman created issue -
          Mike Dubman made changes -
          Description Original: Hi,
          Is that possible to allow running shell script 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
          New: 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
          ikedam made changes -
          Link New: This issue duplicates JENKINS-12744 [ JENKINS-12744 ]
          ikedam made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 157160 ] New: JNJira + In-Review [ 195632 ]

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

              Created:
              Updated:
              Resolved: