jenkins_submit_input_action
Submit input actions like approve or reject to Jenkins CI/CD pipelines using decision URLs, enabling automated workflow control.
Instructions
Enviar una acción de input a Jenkins (aprobar/rechazar)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decisionUrl | Yes | URL de la decisión (proceedUrl o abortUrl) |
Implementation Reference
- tools/jenkins-service.ts:179-186 (handler)Core handler logic: Performs POST request to the provided decisionUrl (proceedUrl or abortUrl) to submit the input action to Jenkins.async submitInputAction(decisionUrl: string): Promise<string> { try { await this.client.post(decisionUrl); return 'Action submitted successfully'; } catch (error: any) { throw handleHttpError(error, `Failed to submit input action to URL: ${decisionUrl}`); } }
- index.ts:231-250 (registration)MCP tool registration including schema (decisionUrl input) and thin wrapper handler delegating to JenkinsService.submitInputAction.server.tool( "jenkins_submit_input_action", "Enviar una acción de input a Jenkins (aprobar/rechazar)", { decisionUrl: z.string().describe("URL de la decisión (proceedUrl o abortUrl)") }, async (args) => { try { const result = await getJenkinsService().submitInputAction(args.decisionUrl); return { content: [{ type: "text", text: `✅ **${result}**` }], }; } catch (error: any) { return { content: [{ type: "text", text: `❌ **Error:** ${error.message}` }], }; } } );
- index.ts:234-236 (schema)Zod schema defining the input parameter for the tool.{ decisionUrl: z.string().describe("URL de la decisión (proceedUrl o abortUrl)") },