Read Build Log
get_build_logRead, search, and navigate build logs with grep, line ranges, and error summaries to debug build failures efficiently.
Instructions
Read, search, and navigate build log files with grep, line ranges, and error summary.
Args: uuid: Build UUID tenant: Tenant name (uses default if empty) log_name: Log file to read (default "job-output.txt"). For other files, use the path relative to the build's log_url, e.g. "logs/controller/ci-framework-data/logs/ci_script_008_run.log" mode: "summary" (default: tail + error lines) or "full" (paginated chunks) lines: For summary: tail line count (default 100). For full: offset start line. start_line: Read from this line number (1-based). If set with end_line, returns exactly that range (overrides mode). end_line: Read up to this line number (1-based, inclusive). grep: Python regex pattern to filter log lines (overrides mode). Use | for OR: "error|failed|timeout". Do NOT use backslash-pipe. context: Lines of context before/after each grep match (default 0, max 10) url: Zuul build URL (alternative to uuid + tenant)
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |