When working with many short-lived feature branches, Jenkins can start to eat up a lot of disk space by leaving old workspaces around from old builds.

      This seems to be especially true with the Pipeline Multibranch Plugin. When that plugin deletes the job for a branch when the branch is deleted, it should simultaneously clean up any of the workspaces created for that branch job (e.g. "feature-foo", "feature-foo@2", "feature-foo@3", etc).

          [JENKINS-34177] Delete workspaces when deleting a job

          Mike Kelly created issue -
          Jesse Glick made changes -
          Epic Link New: JENKINS-35386 [ 171179 ]
          Jesse Glick made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: workflow-plugin [ 18820 ]
          Assignee Original: Jesse Glick [ jglick ]
          Labels Original: workflow New: multibranch workflow workspace
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Summary Original: Pipeline Multibranch Not Cleaning Workspaces New: Delete workspaces when deleting a job
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-22240 [ JENKINS-22240 ]
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-2111 [ JENKINS-2111 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170229 ] New: JNJira + In-Review [ 198815 ]
          Andrew Bayer made changes -
          Labels Original: multibranch workflow workspace New: multibranch pipeline workflow workspace
          Andrew Bayer made changes -
          Labels Original: multibranch pipeline workflow workspace New: multibranch pipeline workspace

            Unassigned Unassigned
            pioto Mike Kelly
            Votes:
            7 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: