With computed folders, such as you may use with multibranch plugins (like github or bitbucket branch source) and a "git flow" way of working, you tend to create a lot of short lived branch jobs.

      These branch jobs are removed not long after creation (as pull requests are merged) and the job removed, however the workspace on any nodes can live around for up to a month before it is cleaned up by WorkspaceCleanupThread (https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/WorkspaceCleanupThread.java#L115)

      I am proposing that in the removal of orphans a similar scanning and removal of workspaces could take place. This can supplement the cleanup thread and make for less garbage filling up disk.

          [JENKINS-34781] Cleanup node workspaces on orphan removal

          Daniel Beck added a comment -

          Duplicates JENKINS-11046?

          Daniel Beck added a comment - Duplicates JENKINS-11046 ?

          Michael Neale added a comment -

          danielbeck yes I think it does.

          Git flow will produce a lot of relatively short live workspaces, which are then deleted by the computed folder. So if the deletion did clean up the workspace this would be a non issue effectively.

          I am closing this as a dupe and piling on to the other issue.

          Michael Neale added a comment - danielbeck yes I think it does. Git flow will produce a lot of relatively short live workspaces, which are then deleted by the computed folder. So if the deletion did clean up the workspace this would be a non issue effectively. I am closing this as a dupe and piling on to the other issue.

          Michael Neale added a comment -

          Effectively dupes: JENKINS-11046

          Michael Neale added a comment - Effectively dupes: JENKINS-11046

            jglick Jesse Glick
            michaelneale Michael Neale
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: