Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(Jenkinsfile): remove build discarder overrides #4887

Conversation

mattdibi
Copy link
Contributor

@mattdibi mattdibi commented Oct 10, 2023

We're currently suffering from a pile up in orphaned Jenkins builds with 300+ old builds on our Jenkins instance.

image

This is probably due to the fact that we're overriding the Orphaned Item Strategy in our Jenkinsfile by specifing a different Build Discarder configuration. See: https://plugins.jenkins.io/build-discarder/

By removing the override in the Jenkinsfile the old builds should be removed.

@mattdibi
Copy link
Contributor Author

Looks like there's no need for this Jenkinsfile update since a Repository Scan is all that is needed for starting the pruning process.

jenkinsci/multibranch-action-triggers-plugin#16

An improvement would be to have a periodic scan of the repo so that the pruning process is kicked automatically

@mattdibi mattdibi closed this Oct 10, 2023
@mattdibi mattdibi deleted the ci/remove_build_discard_overrides branch October 10, 2023 08:27
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.

1 participant