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

Jenkins ends up with java.nio.file.DirectoryNotEmptyException while populating workspace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • Windows 7 SP1, JRE 7U25 (java.version = 1.7.0_25)

      Job intermittently fails to populate Jenkins workspace with java.nio.file.DirectoryNotEmptyException on Windows OS
      using Integrity Plugin 1.23 and Jenkins ver. 1.561/1.557/1.554

      Not reproducible on demand but occurs often enough to be a quite noticeable problem (may occur several times a day, when PTC Source Integrity server and Jenkins build server are busy).

      If the "Retry Count" is set, the workspace subdirectory where the execption apparently occurs (the path behind "java.nio.file.DirectoryNotEmptyException: ") varies for every retry attempt.

      As a workaround the problem can be solved by clicking on "Workspace" in the Dashboard and then on "Wipe Out Current Workspace". If an exception occurs again, the procedure has to be repeated until the workspace is really clean and no DirectoryNotEmptyException occurs. Then the next execution of the Job will be OK.

      To me it looks like a timing issue / threading conflict, but that is a guess only deducted from observed behavior.

        1. DirectoryNotEmptyException.txt
          6 kB
          Martin Hohl
        2. Jenkins_1.565_Stacktrace.log
          7 kB
          Martin Hohl
        3. Jenkins_Integrity_1.24_Stacktrace.log
          7 kB
          Martin Hohl
        4. Jenkins 1.565 System Information.html
          34 kB
          Martin Hohl

            Unassigned Unassigned
            martin_hohl Martin Hohl
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: