stop_build
Stop a running Jenkins build by job name and build number. Destructive: the build is marked ABORTED and loses work; choose stop, term, or kill mode.
Instructions
Stop a running build.
Destructive: the build is abandoned and marked ABORTED, and any work it had done is lost. mode escalates from stop to term and then kill. Freestyle builds support only stop; term and kill are Pipeline-only and require workflow-job. Requires MCP_ALLOW_BUILD_WRITE, MCP_ALLOW_DESTRUCTIVE and MCP_ALLOW_BUILD_STOP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_name": "<job_name>",
"build_number": "<build_number>"
},
"name": "stop_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | stop | |
| job_name | Yes | ||
| build_number | Yes |