Class ConsolePageDecorator

java.lang.Object
hudson.model.Descriptor<PageDecorator>
hudson.model.PageDecorator
io.jenkins.plugins.explain_error.ConsolePageDecorator
All Implemented Interfaces:
ExtensionPoint, Describable<PageDecorator>, Saveable, Loadable, OnMaster
Direct Known Subclasses:
PipelineGraphViewDecorator

@Extension public class ConsolePageDecorator extends PageDecorator
Page decorator to add "Explain Error" functionality to console output pages.
  • Constructor Details

    • ConsolePageDecorator

      public ConsolePageDecorator()
  • Method Details

    • isExplainErrorEnabled

      public boolean isExplainErrorEnabled()
      Whether the page offers to explain the build: explanation is enabled for it, its provider is configured and the user may build the job, which a new explanation requires. Folder settings count, so a folder with a provider of its own gets the button while the global switch is off, and a folder that turns explanation off does not get it. An explanation the build has is shown to anyone who can read the build.
    • getProviderName

      public String getProviderName()
      Returns:
      the name of the provider a new explanation of the build would come from, folder or global
    • isPluginActive

      public boolean isPluginActive()
      Helper method used by jelly to checked if we're on a console url.
    • getRunUrl

      public String getRunUrl()
    • getExistingExplanation

      public ErrorExplanationAction getExistingExplanation()