Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1805

ANT task is not killed after build cancel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • ant-plugin
    • None
    • Platform: All, OS: All

      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!

            Unassigned Unassigned
            81bas 81bas
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: