Class BuildLogsExtension

java.lang.Object
io.jenkins.plugins.mcp.server.extensions.BuildLogsExtension
All Implemented Interfaces:
ExtensionPoint, McpServerExtension

@Extension public class BuildLogsExtension extends Object implements McpServerExtension
  • 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 io.jenkins.plugins.mcp.server.extensions.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)