Skip to content

Conversation

@ch8matt
Copy link

@ch8matt ch8matt commented Nov 20, 2025

Testing done

Fixes JENKINS-61199: retention by age wasn’t applied to deleted jobs.
JobConfigHistoryPurger.purgeHistoryByAge() only purged getJobs(""), which excludes *_deleted_* roots.
This PR adds a purge pass over deleted jobs via getDeletedJobs(""), without changing behavior for normal jobs.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@ch8matt ch8matt requested a review from a team as a code owner November 20, 2025 16:50
@StefanSpieker
Copy link
Contributor

Thanks a lot @ch8matt - I will take a look over the weekend. On a first look, it seems right 👍

@ch8matt
Copy link
Author

ch8matt commented Dec 17, 2025

Hey, Any thoughts on this? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants