Class BuildLogsExtension
java.lang.Object
io.jenkins.plugins.mcp.server.extensions.BuildLogsExtension
- All Implemented Interfaces:
ExtensionPoint
,McpServerExtension
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBuildLog
(String jobFullName, Integer buildNumber, Long skip, Integer limit) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jenkins.plugins.mcp.server.McpServerExtension
getSyncPrompts, getSyncResources, getSyncTools
-
Constructor Details
-
BuildLogsExtension
public BuildLogsExtension()
-
-
Method Details
-
getBuildLog
@Tool(description="Retrieves some log lines with pagination for a specific build or the last build of a Jenkins job, as well as a boolean value indicating whether there is more content to retrieve") public BuildLogsExtension.BuildLogResponse getBuildLog(@ToolParam(description="Job full name of the Jenkins job (e.g., \'folder/job-name\')") String jobFullName, @ToolParam(description="The build number (optional, if not provided, returns the last build)",required=false) Integer buildNumber, @ToolParam(description="The skip (optional, if not provided, returns the first line). Negative values function as \'from the end\', with -1 meaning starting with the last line",required=false) Long skip, @ToolParam(description="The number of lines to return (optional, if not provided, returns 100 lines)",required=false) Integer limit)
-