Class MissingResultFallbackHandler

java.lang.Object
jenkins.model.TransientActionFactory<Job<?,?>>
io.jenkins.plugins.analysis.core.model.MissingResultFallbackHandler
All Implemented Interfaces:
ExtensionPoint

@Extension public final class MissingResultFallbackHandler extends TransientActionFactory<Job<?,?>>
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.
  • Field Details

    • MAX_BUILDS_TO_CONSIDER

      public static final int MAX_BUILDS_TO_CONSIDER
      The maximum number of builds to consider when looking for a valid ResultAction. 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