Package io.jenkins.plugins.explain_error
Class ConsoleExplainErrorAction
java.lang.Object
io.jenkins.plugins.explain_error.ConsoleExplainErrorAction
- All Implemented Interfaces:
Action
,ModelObject
Action to add "Explain Error" functionality to console output pages.
This action needs to be manually added to builds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doCheckExistingExplanation
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) AJAX endpoint to check if an explanation already exists.void
doExplainConsoleError
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) AJAX endpoint to explain error from console output.Run<?,
?> getRun()
-
Constructor Details
-
ConsoleExplainErrorAction
-
-
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
-
doExplainConsoleError
public void doExplainConsoleError(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws javax.servlet.ServletException, IOException AJAX endpoint to explain error from console output. Called via JavaScript from the console output page.- Throws:
javax.servlet.ServletException
IOException
-
doCheckExistingExplanation
public void doCheckExistingExplanation(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws javax.servlet.ServletException, IOException AJAX endpoint to check if an explanation already exists. Returns JSON with hasExplanation boolean and timestamp if it exists.- Throws:
javax.servlet.ServletException
IOException
-
getRun
-