jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-54961] Slave workspaces for removed multibranch PRs piling up

Open
#499 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-multibranch-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
87
Forks
131
PR merge metrics
No merged PRs in 30d

Description

TBH, I'm not sure what the distinction of the Component multi-branch-project-plugin (not Pipeline) is.  I am using the multibranch plugin with pipeline Jenkinsfiles but this issue seems to be more about multi-branch than it does about Pipeline.

In any case, as everyone realises, PRs and branches come and go in the MBPP model.

What's happening though is that the workspaces that are created to build and test these PRs and branches are being left lying around, piling up, using up free disk space.  There does not seem to be any mechanism to clean these up (on the slaves, to be clear) when a PR is closed and/or a branch is deleted.

Sure, I could just get all delete-happy in the workspace dirs of my slaves but that is not really productive.  I don't want to go deleting workspaces for branches and/or PRs that are still open and thus still being used.

What's the solution here?

---
Originally reported by brianjmurrell, imported from: Slave workspaces for removed multibranch PRs piling up


  • status: Open
  • priority: Critical
  • component(s): workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251212-090250

Raw content of original issue

TBH, I'm not sure what the distinction of the Component multi-branch-project-plugin (not Pipeline) is.  I am using the multibranch plugin with pipeline Jenkinsfiles but this issue seems to be more about multi-branch than it does about Pipeline.

In any case, as everyone realises, PRs and branches come and go in the MBPP model.

What's happening though is that the workspaces that are created to build and test these PRs and branches are being left lying around, piling up, using up free disk space.  There does not seem to be any mechanism to clean these up (on the slaves, to be clear) when a PR is closed and/or a branch is deleted.

Sure, I could just get all delete-happy in the workspace dirs of my slaves but that is not really productive.  I don't want to go deleting workspaces for branches and/or PRs that are still open and thus still being used.

What's the solution here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.