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.
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.