[
https://issues.jenkins-ci.org/browse/JENKINS-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159470#comment-159470
]
evernat commented on JENKINS-1805:
----------------------------------
Thanks the ProcessTreeKiller
https://wiki.jenkins-ci.org/display/JENKINS/ProcessTreeKiller
This issue can be closed as said in the last comments.
> ANT task is not killed after build cancel
> -----------------------------------------
>
> Key: JENKINS-1805
> URL: https://issues.jenkins-ci.org/browse/JENKINS-1805
> Project: Jenkins
> Issue Type: Bug
> Components: ant
> Affects Versions: current
> Environment: Platform: All, OS: All
> Reporter: 81bas
>
> If the project build is cancelled via WEB UI then ANT process is still shown
> in
> OS process list.
> Possible solution: change hudson/tasks/Ant.java, method perform(...):
> ......
> Proc antProc = null;
> try {
> antProc = launcher.launch(args.toCommandArray(),env,
> listener.getLogger(),proj.getModuleRoot());
> int r = antProc.join();
> return r==0;
> } catch (InterruptedException ie){
> antProc.kill();
> } catch (IOException e) {
> ......
> Thanks!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira