--- name: gitlab:ci description: Working with GitLab CI/CD pipelines and jobs. Use when viewing pipelines, debugging jobs, or validating CI configuration. --- # GitLab CI/CD Working with GitLab CI/CD pipelines and jobs via `glab ci`. ## Key Commands ```bash glab ci status # Pipeline status for current branch glab ci list # List recent pipelines glab ci lint # Validate .gitlab-ci.yml glab ci trace # Watch job logs in real-time glab ci retry # Retry a failed job glab ci run # Trigger pipeline for current branch ``` Use `glab ci --help` and `glab ci --help` for full options. ## Debugging Failures - `glab ci view` - Interactive view of pipeline jobs (can also trace/retry from here) - `glab ci trace ` - Stream job logs in real-time - `glab ci retry ` - Retry a failed job ## Configuration For `.gitlab-ci.yml` syntax, see `/ci/yaml/` in [GitLab docs](https://docs.gitlab.com/ci/yaml/).