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

Exception when using deleteDir() from pipeline

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not A Defect
    • _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

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: