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 TypeMethodDescriptionvoiddoCheckBuildStatus(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) AJAX endpoint to check build status.voiddoExplainConsoleError(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:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
doExplainConsoleError
public void doExplainConsoleError(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException AJAX endpoint to explain error from console output. Called via JavaScript from the console output page.- Throws:
IOException
-
doCheckBuildStatus
public void doCheckBuildStatus(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws javax.servlet.ServletException, IOException AJAX endpoint to check build status. Returns JSON with buildingStatus to determine if button should be shown. 0 - SUCCESS, 1 - RUNNING, 2 - FINISHED and FAILURE- Throws:
javax.servlet.ServletExceptionIOException
-
getRun
-