Skip to content

Implements a DiscardOldBuild strategy for jenkins that prevents removal of build history if the build is unstable

License

Notifications You must be signed in to change notification settings

jenkinsci/enhanced-old-build-discarder-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enhanced Old Build Discarder plugin

Enhanced Old Build Discarder is a Jenkins plugin that extends the functionality of the internal build discard plugin with an option to prevent discard of builds when the job is unstable, in addition to the ability to require both age and quantity conditions be met prior to build discard.

The plugin is configured as a build rotation strategy labelled Enhanced Log Rotator in the internal Discard old builds feature. It can additionally be configured as a Pipeline script using a call to properties() such as:

properties([[$class: 'BuildDiscarderProperty', strategy: [$class: 'EnhancedOldBuildDiscarder',
 artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '10', numToKeepStr: '10',
 discardOnlyOnSuccess: false, holdMaxBuilds: true]]]);

Version History

1.4 (2019-08-01)

  • Added feature to enforce both age and quantity conditions be met prior to build discard
  • Updated plugin dependencies
  • Added plugin unit tests
  • Added CI testing
  • Added help documentation

1.0 (2013-06-07)

  • Release version

About

Implements a DiscardOldBuild strategy for jenkins that prevents removal of build history if the build is unstable

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published