How to terminate tests in TestNG ANT task gracefully?
I have built test suite where they invoke builds in Jenkins through HTTP call and monitor the execution status. However whenever I send Ctrl+C
, I notice that test execution halts immediately. I want to invoke some clean up code to stop Jenkins build execution before exiting.