Class TestResultExtension
java.lang.Object
io.jenkins.plugins.mcp.server.extensions.TestResultExtension
- All Implemented Interfaces:
ExtensionPoint,McpServerExtension
@OptionalExtension(requirePlugins="junit")
public class TestResultExtension
extends Object
implements McpServerExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Methods 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
-
TestResultExtension
public TestResultExtension()
-
-
Method Details
-
getTestResults
@Tool(description="Retrieves the test results associated to a Jenkins build", annotations=) public Map<String,Object> getTestResults(@ToolParam(description="Job full name of the Jenkins job (e.g., \'folder/job-name\')") String jobFullName, @Nullable @ToolParam(description="Build number (optional, if not provided, returns the test results for last build)",required=false) Integer buildNumber)
-