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

Exception when using deleteDir() from pipeline

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

      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(...)

          [JENKINS-53187] Exception when using deleteDir() from pipeline

          Marco Steffan created issue -
          Oleg Nenashev made changes -
          Component/s New: _unsorted [ 19622 ]
          Component/s Original: core [ 15593 ]
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]
          Marco Steffan made changes -
          Link New: This issue relates to JENKINS-52416 [ JENKINS-52416 ]
          Marco Steffan made changes -
          Link New: This issue relates to JENKINS-52402 [ JENKINS-52402 ]
          Marco Steffan made changes -
          Link New: This issue relates to JENKINS-52404 [ JENKINS-52404 ]
          Oleg Nenashev made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: