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

Exception when using deleteDir() from pipeline

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not A Defect
    • Minor
    • _unsorted
    • None
    • master on Win10x64, slaves on Win10x64,
      Jenkins 2.121.2

    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

              oleg_nenashev Oleg Nenashev
              marcosteffan Marco Steffan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: