Read Build Log
get_build_logDiagnose build failures by reading, searching, and navigating Zuul build logs with grep, line ranges, and error summaries.
Instructions
Read, search, and navigate build log files with grep, line ranges, and error summary.
Args: uuid: Build UUID tenant: Tenant (default from env) log_name: Log file to read (default "job-output.txt") mode: "summary" (tail + errors), "errors" (errors only, no tail), or "full" (paginated) lines: For summary: tail count (default 50). For full: offset start line. start_line: Read from this line (1-based, overrides mode with end_line) end_line: Read up to this line (1-based, inclusive) grep: Regex to filter lines (overrides mode). Use | for OR. context: Lines of context around grep matches (default 0, max 10) url: Zuul build URL (alternative to uuid + tenant) direct_log_url: Log URL from a prior get_build/diagnose_build call. Skips the build metadata fetch when provided. max_matches: Max grep matches to return (default 50, max 200) filter_noise: Filter out noise lines (failed=0, RETRYING) from grep results (default true)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| grep | No | ||
| mode | No | summary | |
| uuid | No | ||
| lines | No | ||
| tenant | No | ||
| context | No | ||
| end_line | No | ||
| log_name | No | job-output.txt | |
| start_line | No | ||
| max_matches | No | ||
| filter_noise | No | ||
| direct_log_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |