Sometimes I have maven surefire tests that get hung, due to either races or deadlocks.
When this happens I have to discover what slave is being used, and then I have to log on that slave, sudo to jenkins account and execute either jstack or kill -3 I am looking for a simple solution like doing jstack / kill -3 when someone presses abort button on the jenkins. Can someone suggest how can I automate this or some better way of handling this?