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 TypeMethodDescriptiongetBuildChangeSets
(String jobFullName, Integer buildNumber) getBuildScm
(String jobFullName, Integer buildNumber) static boolean
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
-
JobScmExtension
public JobScmExtension()
-
-
Method Details
-
isGitPluginInstalled
public static boolean isGitPluginInstalled() -
getJobScm
@Tool(description="Retrieves scm configurations of a Jenkins job") 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") 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") 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)
-