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

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

    XMLWordPrintable

Details

    Description

      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.

       

      Attachments

        1. Untitled_Clipping_091018_025240_PM.jpg
          69 kB
          Ioannis Moutsatsos
        2. Untitled_Clipping_091018_025642_PM.jpg
          106 kB
          Ioannis Moutsatsos

        Activity

          There are no comments yet on this issue.

          People

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

            Dates

              Created:
              Updated: