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
ConstructorsConstructorDescriptionErrorExplanationAction(String explanation, String originalErrorLogs, String providerName) -
Method Summary
Modifier and TypeMethodDescriptionRun<?, ?> getRun()Get the associated run.longbooleanCheck if this action has a valid explanation.voidonAttached(Run<?, ?> r) void
-
Constructor Details
-
ErrorExplanationAction
-
-
Method Details
-
readResolve
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getExplanation
-
getOriginalErrorLogs
-
getTimestamp
public long getTimestamp() -
getFormattedTimestamp
-
getProviderName
-
onAttached
- Specified by:
onAttachedin interfaceRunAction2
-
onLoad
- Specified by:
onLoadin 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
-