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

Hudson deletes the temporary directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None

      The class "TemporarySpaceMonitor" deletes the temporary directory specified by the java.io.tmpdir property. Usually the directory cannot be deleted because it contains files, but if the directory happens to be empty, it is deleted.

      This code is from TemporarySpaceMonitor.java:
      try {
      f = new File(System.getProperty("java.io.tmpdir"));
      // ...
      } catch (LinkageError e) {
      // pre-mustang
      return null;
      } finally {
      f.delete();
      }

      The call to f.delete() must be removed.

            Unassigned Unassigned
            mka2 mka2
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: