jenkins_stop_build
Stop a running Jenkins build by specifying the job name and build number, enabling quick cancellation of erroneous or stuck jobs.
Instructions
Abort/stop a running build.
Args: job_name: Full job name build_number: Build number to stop (0 = last build) session_name: Jenkins session to use
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>"
},
"name": "jenkins_stop_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | Yes | ||
| build_number | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |