grep_job_logs
Search CI job logs for regex patterns to locate mid-log failures like E2E errors or build issues, returning matching lines with surrounding context.
Instructions
Grep a job log for lines matching a regex (case-insensitive). Returns matching lines with 2 lines context before/after. Use when failure is mid-log (E2E tests, build errors) rather than at the tail. Input: {repo, jobId, pattern: string, maxMatches?: number=50}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| jobId | Yes | ||
| pattern | Yes | Regex pattern (case-insensitive) | |
| maxMatches | No | Max matching lines (default 50) |