Package io.jenkins.plugins.explain_error
Class ErrorExplanationAction
java.lang.Object
io.jenkins.plugins.explain_error.ErrorExplanationAction
- All Implemented Interfaces:
Action
,ModelObject
,RunAction2
Build action to store and display error explanations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRun<?,
?> getRun()
Get the associated run.long
boolean
Check if this action has a valid explanation.void
onAttached
(Run<?, ?> r) void
-
Constructor Details
-
ErrorExplanationAction
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getExplanation
-
getOriginalErrorLogs
-
getTimestamp
public long getTimestamp() -
getFormattedTimestamp
-
onAttached
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
- Specified by:
onLoad
in interfaceRunAction2
-
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
-