Class MissingResultFallbackHandler
java.lang.Object
jenkins.model.TransientActionFactory<Job<?,?>>
io.jenkins.plugins.analysis.core.model.MissingResultFallbackHandler
- All Implemented Interfaces:
ExtensionPoint
Registers this class as a Jenkins extension that provides fallback for analysis builds.
This helps display warnings in the job view even when no analysis is present in one of the latest builds.
The actions are rendered by finding the most recent build with valid
ResultAction
instances,
and then attaching the corresponding JobAction
and MissingResultFallbackHandler.TransientProjectResultAction
to the job.-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.model.TransientActionFactory
TransientActionFactory.Cache
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The maximum number of builds to consider when looking for a validResultAction
. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
Field Details
-
MAX_BUILDS_TO_CONSIDER
public static final int MAX_BUILDS_TO_CONSIDERThe maximum number of builds to consider when looking for a validResultAction
. This is set to a maximum of 5 to avoid performance issues with large job histories.- See Also:
-
-
Constructor Details
-
MissingResultFallbackHandler
public MissingResultFallbackHandler()
-
-
Method Details
-
type
- Specified by:
type
in classTransientActionFactory<Job<?,
?>>
-
createFor
- Specified by:
createFor
in classTransientActionFactory<Job<?,
?>>
-