get_build_scm
Retrieve SCM details like git commit and branch for a specific Jenkins build by providing the job name and build number.
Instructions
Get SCM information (git commit, branch, etc.) for a 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": {
"name": "<name>"
},
"name": "get_build_scm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full job name | |
| number | No | Build number or 'last' | last |