jenkins_get_build_log
Retrieve the full console output or build log for a specific Jenkins build, optionally starting from a given line offset, to inspect build results and troubleshoot failures.
Instructions
Get console output (build log) for a specific build.
Returns the full console text output of the build.
Args: job_name: Full job name build_number: Build number (0 = last build) start_line: Start offset in bytes for progressive output (default: 0 = from beginning) 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_get_build_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_name | Yes | ||
| start_line | No | ||
| build_number | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |