Class ChatbotApiAction
java.lang.Object
io.jenkins.plugins.chatbot.ChatbotApiAction
- All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoDynamic(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) Intercepts all requests matching /chatbot-api/* and acts as a proxy.voiddoWorkspaceFile(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String jobName, int buildNumber, String workspaceId, String filePath) Reads the content of a specific file within a specific workspace.voiddoWorkspaceTree(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, String jobName, int buildNumber) Retrieves the tree of all workspaces for a specific build.getUIPath(org.kohsuke.stapler.StaplerRequest2 request) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RootAction
getBadge, isPrimaryAction
-
Constructor Details
-
ChatbotApiAction
public ChatbotApiAction()
-
-
Method Details
-
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-
getUIPath
-
doDynamic
-
doWorkspaceTree
public void doWorkspaceTree(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter String jobName, @QueryParameter int buildNumber) throws Exception Retrieves the tree of all workspaces for a specific build. Example URL:/chatbot/workspaceTree?jobName=my-pipeline&buildNumber=12- Throws:
Exception
-
doWorkspaceFile
public void doWorkspaceFile(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp, @QueryParameter String jobName, @QueryParameter int buildNumber, @QueryParameter String workspaceId, @QueryParameter String filePath) throws Exception Reads the content of a specific file within a specific workspace. Example URL:/chatbot/workspaceFile?jobName=my-pipeline&buildNumber=12&workspaceId=ws-pipeline-1&filePath=src/main/App.java- Throws:
Exception
-