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

Pipeline Job-- deletedir() delete only current directory but @script and @tmp dir still there in workspace.

    • Jenkins 2.244

      Directories with an ampersand (like @tmp and @script, @libs) are not removed when using 'deletedir()' in pipeline stage.

      They are never cleaned up, even by the built in build discarders,
      On our instances we have 2172 folders with @libs (which is a copy of the shared library for the build)
      Which is taking up 7GB of space

          [JENKINS-41805] Pipeline Job-- deletedir() delete only current directory but @script and @tmp dir still there in workspace.

          Hiten Prajapati created issue -
          Ryan Campbell made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Stefan Droog made changes -
          Resolution Original: Incomplete [ 4 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Stefan Droog made changes -
          Assignee Original: Matthew DeTullio [ mjdetullio ] New: Ryan Campbell [ recampbell ]
          Matthew DeTullio made changes -
          Component/s New: pipeline [ 21692 ]
          Component/s Original: multi-branch-project-plugin (not Pipeline) [ 21127 ]
          Stefan Droog made changes -
          Description New: Directories with an ampersand (like @tmp and @script) are not removed when using 'deletedir()' in pipeline stage.
          Baptiste Mathus made changes -
          Link New: This issue is duplicated by JENKINS-44909 [ JENKINS-44909 ]
          Andrew Bayer made changes -
          Component/s New: workflow-basic-steps-plugin [ 21712 ]
          Component/s Original: pipeline [ 21692 ]
          Arnaud Héritier made changes -
          Assignee Original: Ryan Campbell [ recampbell ]
          Tim Jacomb made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]
          Tim Jacomb made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]

            timja Tim Jacomb
            hiten_prajapati Hiten Prajapati
            Votes:
            67 Vote for this issue
            Watchers:
            91 Start watching this issue

              Created:
              Updated:
              Resolved: