jenkinsci/build-timeout-plugin — Issue #5: Ability to run a script before interrupting the executor
Author: paul-hammant
Created: 2011-10-17 21:11:25+00:00
State: open

In my particular case I want to pull some stats out of a running Tomcat via servlet and WGET before killing the tomcat. I have JBehave/WebDriver jobs leveraging Sauce Labs in fairly large scale, and one or more could be stuck. There are many reasons for that, but part of my build after all is successful, would retrieve the stats, and store them in the build artifacts in a JSON file. However, the build-timeout-plugin is doing a kill -9 style of shutdown on all the processes spawned by Jenkins for the job, and I'm not getting my chance to do the stats step before a more controlled shutdown of the stack.