jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-68259] Cleanup of deleted branches and closed PRs does not happen automatically
- Dominant language
- Java
- Stars
- 217
- Forks
- 398
- Avg merge
- 30m
- Merged PRs (30d)
- 1
Description
When a multibranch pipeline job, the deleted branches and closed PRs get striked-out but they do no get removed automatically. This results in disk space being consumed for those obsolete branches and PRs. Orphaned Stategy is set as 'Discard old items' checked, with no values in 'Days to keep old items' or 'Max # of old items to keep'.
However, when I manually trigger "Scan Repository Now", all striked-out branches and PRs get removed.
Why are those branches/PRs not getting deleted instead of just being striked out ? How can the cleanup be handled automatically ?
---
Originally reported by richmond, imported from: Cleanup of deleted branches and closed PRs does not happen automatically
Raw content of original issue
When a multibranch pipeline job, the deleted branches and closed PRs get striked-out but they do no get removed automatically. This results in disk space being consumed for those obsolete branches and PRs. Orphaned Stategy is set as 'Discard old items' checked, with no values in 'Days to keep old items' or 'Max # of old items to keep'.
However, when I manually trigger "Scan Repository Now", all striked-out branches and PRs get removed.
Why are those branches/PRs not getting deleted instead of just being striked out ? How can the cleanup be handled automatically ?
environment
```
Jenkins LTS 2.319.1
GitHub Branch Source 2.11.4
```
Contributor guide
Assessment
This issue has not been assessed yet.