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

Add a new trait to discard all branches with head commits older than the configured days. #964

Closed
wants to merge 2 commits into from

Conversation

nfalco79
Copy link
Member

This trait is useful when you do not want to pollute the Jenkins instance with older work such as support, release or feature branches for which there will be no further work, for which without this trait the work will be kept there for weeks or years taking up resources. When a new commit is pushed to the discarded branch, a new Jenkins work will be recreated.

Use JDK 17 feature
Remove unused import
@nfalco79 nfalco79 force-pushed the feature/new_trait branch 2 times, most recently from 940484f to 58dcacf Compare January 11, 2025 15:13
…the configured days.

This trait is useful when you do not want to pollute the Jenkins instance with older work such as support, release or feature branches for which there will be no further work, for which without this trait the work will be kept there for weeks or years taking up resources. When a new commit is pushed to the discarded branch, a new Jenkins work will be recreated.
@nfalco79 nfalco79 closed this Jan 11, 2025
@nfalco79 nfalco79 deleted the feature/new_trait branch January 11, 2025 15:42
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