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

Ant Task locks build log file. Unable to delete build.


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • antexec-plugin
    • Jenkins v2.121.3 LTS, AntExec v1.11 Java v1.8.0.161, Windows Server 2008

      Running Jenkins on a Windows 2008 server, I'm experiencing an issue where using the AntExec plugin and executing the ant unzip task on a file in the workspace works, but leaves a file handle open on the log file of the build. As a result, trying to delete these builds fails with a Java IOException see error screnshot.

      Using Windows Process Explorer, I can see that the file handles are open for all the builds executed and not just the last one.

      Note, I have also noticed similar issues with trying to run the same Ant task from a System Groovy script.


            Unassigned Unassigned
            ioannis Ioannis Moutsatsos
            0 Vote for this issue
            1 Start watching this issue