Jenkins shut down hook if build is interrupted

852 views Asked by At

I have a Jenkins job and the integration tests require certain resources. I have a shut down hook that ensures that all connections have been closed and worker threads stopped in case there is such a situation that some of them are missed during execution or (as i intended) build is interrupted.However, shut down hooks are not executed if job is interrupted with the UI or something. Is there a way to make it execute, or an event created when job is interrupted before completion? Thanks in advance

0

There are 0 answers