jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-49325] @script folder contains full git checkout and is not deleted on cleanup

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

Description

On any multibranch build, with orphaned item strategy set, workspace directories are deleted, but not @​script folders (on the master) which contain complete copies of the git repository for every branch/PR, etc.. With an active build server and many branches, this extremely rapidly fills up disk space.

Also, ws-cleanup plugin does not remove @​script folders either, so doesn't appear to be a work-around.

---
Originally reported by therealwaldo, imported from: @script folder contains full git checkout and is not deleted on cleanup


  • status: Open
  • priority: Minor
  • component(s): workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 6
  • watchers: 8
  • imported: 20251212-090250

Raw content of original issue

On any multibranch build, with orphaned item strategy set, workspace directories are deleted, but not @script folders (on the master) which contain complete copies of the git repository for every branch/PR, etc.. With an active build server and many branches, this extremely rapidly fills up disk space.

Also, ws-cleanup plugin does not remove @script folders either, so doesn't appear to be a work-around.

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.