jenkinsci / jenkinsci/workflow-multibranch-plugin
[JENKINS-49325] @script folder contains full git checkout and is not deleted on cleanup
- 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
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
Assessment
This issue has not been assessed yet.