ci

Working with GitLab CI/CD pipelines and jobs. Use when viewing pipelines, debugging jobs, or validating CI configuration.

SKILL.md

GitHub

GitLab CI/CD

Working with GitLab CI/CD pipelines and jobs via glab ci.

Key Commands

glab ci status             # Pipeline status for current branch
glab ci list               # List recent pipelines
glab ci lint               # Validate .gitlab-ci.yml
glab ci trace <job-id>     # Watch job logs in real-time
glab ci retry <job-id>     # Retry a failed job
glab ci run                # Trigger pipeline for current branch

Use glab ci --help and glab ci <command> --help for full options.

Debugging Failures

  • glab ci view - Interactive view of pipeline jobs (can also trace/retry from here)
  • glab ci trace <job-id> - Stream job logs in real-time
  • glab ci retry <job-id> - Retry a failed job

Configuration

For .gitlab-ci.yml syntax, see /ci/yaml/ in GitLab docs.