Class BuildHistoryManager
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildDiscarder>
jenkins.model.BuildDiscarder
pl.damianszczepanik.jenkins.buildhistorymanager.BuildHistoryManager
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildDiscarder>
Custom implementation of
BuildDiscarder
- Author:
- Damian Szczepanik (damianszczepanik@github)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.model.BuildDiscarder
BuildDiscarder.ConverterImpl
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Methods inherited from class jenkins.model.BuildDiscarder
getDescriptor
-
Constructor Details
-
BuildHistoryManager
-
-
Method Details
-
getRules
-
perform
Entry point for the discarding process. Iterates over the completed builds and rules. This method is invoked byJob.logRotate()
, which is called for example by
JobGlobalBuildDiscarderStrategy.apply(Job)
,
org.jenkinsci.plugins.workflow.job.WorkflowRun#finish()
thus this method can be invoked several time after completed build.- Specified by:
perform
in classBuildDiscarder
- Throws:
IOException
InterruptedException
- See Also:
-