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.

    Details

    • Similar Issues:
    • Released As:
      Jenkins 2.244

      Description

      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

        Attachments

          Issue Links

            Activity

            hiten_prajapati Hiten Prajapati created issue -
            recampbell Ryan Campbell made changes -
            Field Original Value New Value
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Incomplete [ 4 ]
            stefan1509 Stefan Droog made changes -
            Resolution Incomplete [ 4 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            stefan1509 Stefan Droog made changes -
            Assignee Matthew DeTullio [ mjdetullio ] recampbell [ recampbell ]
            mjdetullio Matthew DeTullio made changes -
            Component/s pipeline [ 21692 ]
            Component/s multi-branch-project-plugin (not Pipeline) [ 21127 ]
            stefan1509 Stefan Droog made changes -
            Description Directories with an ampersand (like @tmp and @script) are not removed when using 'deletedir()' in pipeline stage.
            batmat Baptiste Mathus made changes -
            Link This issue is duplicated by JENKINS-44909 [ JENKINS-44909 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-basic-steps-plugin [ 21712 ]
            Component/s pipeline [ 21692 ]
            aheritier Arnaud Héritier made changes -
            Assignee Ryan Campbell [ recampbell ]
            timja Tim Jacomb made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            timja Tim Jacomb made changes -
            Priority Major [ 3 ] Minor [ 4 ]
            timja Tim Jacomb made changes -
            Description Directories with an ampersand (like @tmp and @script) are not removed when using 'deletedir()' in pipeline stage. 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
            timja Tim Jacomb made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            timja Tim Jacomb made changes -
            Assignee Tim Jacomb [ timja ]
            timja Tim Jacomb made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            timja Tim Jacomb made changes -
            Remote Link This issue links to "jenkins/jenkins#4824 (Web Link)" [ 25240 ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s core [ 15593 ]
            oleg_nenashev Oleg Nenashev made changes -
            Released As Jenkins 2.244
            timja Tim Jacomb made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            timja Tim Jacomb made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                timja Tim Jacomb
                Reporter:
                hiten_prajapati Hiten Prajapati
              • Votes:
                67 Vote for this issue
                Watchers:
                84 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: