Jenkins plugin that allows to build complex rules to define which builds should be removed from the history and which preserved.
The motivation of creating this plugin is to deliver powerful tool that allows to define rules that are built from two types of objects:
Actions defines how the build filtered by above condition) should be modified. Plugin can:
Read Wiki for more details.
There is possibility to build complex rules. Each rule can define more than single condition and action. Plugin starts as BuildDiscarder class. Core method that is responsible for processing conditions and actions are stored in Rule.perform() method.
Using conditions and actions there is easy to realize following scenarios:
- Delete builds which are unstable or aborted if they are not valuable from the history/audit point of view.
- Keep only last build per result. So the history contain the most recent builds for result aborted, unstable, failure and success.
- Keep builds only from
masterbranch if the project builds all branches including feature branches
- Remove builds which have build number lower than given value to easily drop all old builds at once.
Check release section