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

Exception when using deleteDir() from pipeline

    XMLWordPrintable

Details

    Description

      When using the deleteDir() command in a pipeline it occurs very often that that command fails with the attached exception (the command will pass only about 1 of 4 times which is pretty frustrating...)

      Strange thing is, that the same pipeline is executed on 2 different nodes (but same hardware/software/java-vm setup of the nodes) where one of the 2 nodes almost never has the problem and the other node as described just passes in about 1 of 4 times.

       

      Searching a bit has taken me to https://stackoverflow.com/questions/48311252/a-bit-strange-behaviour-of-files-delete-and-files-deleteifexists which might fit to the scenario in FilePath.java in deleteContentsRecursive(...)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marcosteffan Marco Steffan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: