Class ErrorExplanationAction

java.lang.Object
io.jenkins.plugins.explain_error.ErrorExplanationAction
All Implemented Interfaces:
Action, ModelObject, RunAction2

public class ErrorExplanationAction extends Object implements RunAction2
Build action to store and display error explanations.
  • Constructor Details

    • ErrorExplanationAction

      public ErrorExplanationAction(String explanation, String originalErrorLogs)
  • Method Details

    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getExplanation

      public String getExplanation()
    • getOriginalErrorLogs

      public String getOriginalErrorLogs()
    • getTimestamp

      public long getTimestamp()
    • getFormattedTimestamp

      public String getFormattedTimestamp()
    • onAttached

      public void onAttached(Run<?,?> r)
      Specified by:
      onAttached in interface RunAction2
    • onLoad

      public void onLoad(Run<?,?> r)
      Specified by:
      onLoad in interface RunAction2
    • getRun

      public Run<?,?> getRun()
      Get the associated run.
      Returns:
      the run this action is attached to
    • hasValidExplanation

      public boolean hasValidExplanation()
      Check if this action has a valid explanation.
      Returns:
      true if explanation is not null, not empty, and not just whitespace