Class JobScmExtension
java.lang.Object
io.jenkins.plugins.mcp.server.extensions.JobScmExtension
- All Implemented Interfaces:
ExtensionPoint,McpServerExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindJobsWithScmUrl(String scmUrl, String branch, Integer skip, Integer limit) getBuildChangeSets(String jobFullName, Integer buildNumber) getBuildScm(String jobFullName, Integer buildNumber) static booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jenkins.plugins.mcp.server.McpServerExtension
getSyncPrompts, getSyncResources, getSyncTools
-
Constructor Details
-
JobScmExtension
public JobScmExtension()
-
-
Method Details
-
isGitPluginInstalled
public static boolean isGitPluginInstalled() -
getJobScm
@Tool(description="Retrieves scm configurations of a Jenkins job", annotations=) public List getJobScm(@ToolParam(description="Full path of the Jenkins job (e.g., \'folder/job-name\')") String jobFullName) -
getBuildScm
@Tool(description="Retrieves scm configurations of a Jenkins build", annotations=) public List getBuildScm(@ToolParam(description="Full path of the Jenkins job (e.g., \'folder/job-name\')") String jobFullName, @Nullable @ToolParam(description="Build number (optional, if not provided, updates the last build)",required=false) Integer buildNumber) -
getBuildChangeSets
@Tool(description="Retrieves change log sets of a Jenkins build", annotations=) public List getBuildChangeSets(@ToolParam(description="Full path of the Jenkins job (e.g., \'folder/job-name\')") String jobFullName, @Nullable @ToolParam(description="Build number (optional, if not provided, updates the last build)",required=false) Integer buildNumber) -
findJobsWithScmUrl
@Tool(description="Get a paginated list of Jenkins jobs that use the specified git SCM URL", annotations=) public List<Job> findJobsWithScmUrl(@ToolParam(description="SCM URL to search for (e.g., \'git@github.com:jenkinsci/mcp-server-plugin.git\')") String scmUrl, @ToolParam(description="SCM Branch (e.g., \'feature/my-feature\')",required=false) String branch, @ToolParam(description="The 0 based started index, if not specified, then start from the first (0)",required=false) Integer skip, @ToolParam(description="The maximum number of items to return. If not specified, returns 10 items. Cannot exceed 10 items.",required=false) Integer limit) throws URISyntaxException - Throws:
URISyntaxException
-