stop_build
Stops a running Jenkins build by job path and build number, including lastBuild, so stuck or unwanted CI jobs can be halted.
Instructions
Stop a running Jenkins build
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": {
"jobPath": "<jobPath>",
"buildNumber": "<buildNumber>"
},
"name": "stop_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobPath | Yes | Path to the Jenkins job | |
| buildNumber | Yes | Build number to stop (use "lastBuild" for most recent) |