Loading...
Loading...
GitLab CI/CD pipeline operations. ALWAYS use this skill when user wants to: (1) view pipeline status, (2) run/trigger pipelines, (3) view/retry jobs, (4) trace job logs, (5) download artifacts, (6) lint CI config.
npx skill4agent add grandcamel/gitlab-assistant-skills gitlab-ciglab| Operation | Command | Risk |
|---|---|---|
| View status | | - |
| View pipeline | | - |
| List pipelines | | - |
| Run pipeline | | ⚠️ |
| Get pipeline JSON | | - |
| Retry job | | ⚠️ |
| Trace job | | - |
| Download artifacts | | - |
| Lint CI config | | - |
| Delete pipeline | | ⚠️⚠️ |
glab ci status [options]| Flag | Description |
|---|---|
| Check status for specific branch |
| Show status in real-time (updates automatically) |
| Show compact view |
# View current branch pipeline status
glab ci status
# View status for specific branch
glab ci status --branch=main
# Watch status live (updates in real-time)
glab ci status --live
# Compact view
glab ci status --compactglab ci view [options]| Flag | Description |
|---|---|
| View pipeline for specific branch/tag |
| View specific pipeline by ID |
| Open pipeline in browser |
| Key | Action |
|---|---|
| Close logs or return to pipeline |
| Run, retry, or play a job |
| Navigate |
| Confirm selection |
| Cancel job / Quit view |
# Interactive view for current branch
glab ci view
# View specific branch pipeline
glab ci view --branch=feature/new
# View specific pipeline ID
glab ci view --pipeline-id=12345
# Open in browser
glab ci view --webglab ci list [options]| Flag | Description |
|---|---|
| Filter by branch |
| Filter by status: running, pending, success, failed, canceled, skipped |
| List all pipelines (not just default page) |
| Items per page |
# List recent pipelines
glab ci list
# List pipelines for branch
glab ci list --branch=main
# List failed pipelines
glab ci list --status=failed
# List all running pipelines
glab ci list --status=running --allglab ci run [options]| Flag | Description |
|---|---|
| Branch or tag to run pipeline on |
| CI variables as key=value pairs (comma-separated) |
# Run pipeline for current branch
glab ci run
# Run pipeline for specific branch
glab ci run --branch=main
# Run with CI variables
glab ci run --variables="DEPLOY_ENV=staging,DEBUG=true"
# Run for a tag
glab ci run --branch=v1.2.3glab ci get [options]| Flag | Description |
|---|---|
| Get pipeline for specific branch |
| Get specific pipeline by ID |
# Get current branch pipeline
glab ci get
# Get specific pipeline
glab ci get --pipeline-id=12345
# Pipe to jq for processing
glab ci get | jq '.status'glab ci retry <job-id># Retry specific job
glab ci retry 456789glab ci trace <job-id> [options]# Trace job output
glab ci trace 456789glab ci artifact [options]| Flag | Description |
|---|---|
| Download from specific branch |
| Download from specific job |
| Download to specific path |
# Download all artifacts from last pipeline
glab ci artifact
# Download from specific job
glab ci artifact --job=build
# Download to specific directory
glab ci artifact --path=./artifacts/glab ci lint [file]# Lint default .gitlab-ci.yml
glab ci lint
# Lint specific file
glab ci lint path/to/.gitlab-ci.ymlglab ci delete <pipeline-id># 1. Check current status
glab ci status
# 2. View failed pipeline interactively
glab ci view
# 3. Find failed job and view logs (in interactive view)
# Press arrow keys to select job, Enter to view logs
# 4. Retry the failed job
glab ci retry <job-id>
# 5. Watch the retry
glab ci status --live# 1. Ensure tests pass
glab ci status --branch=main
# 2. Trigger deployment pipeline with variables
glab ci run --branch=main --variables="DEPLOY_ENV=production"
# 3. Monitor deployment
glab ci status --live# 1. Lint your CI config
glab ci lint
# 2. If valid, run a test pipeline
glab ci run
# 3. Watch the results
glab ci view# 1. Check pipeline succeeded
glab ci status --branch=release
# 2. Download artifacts from build job
glab ci artifact --branch=release --job=build --path=./dist/| Status | Meaning |
|---|---|
| Pipeline is currently executing |
| Pipeline is waiting to run |
| All jobs passed |
| One or more jobs failed |
| Pipeline was manually canceled |
| Pipeline was skipped |
| Waiting for manual trigger |
| Scheduled to run later |
| Issue | Cause | Solution |
|---|---|---|
| Authentication failed | Invalid/expired token | Run |
| Pipeline not found | No pipeline for branch | Check branch name or run |
| Job stuck pending | No runners available | Check runner configuration |
| Lint fails | Invalid YAML syntax | Fix syntax errors in .gitlab-ci.yml |
| Cannot retry | Job not in retryable state | Wait for current run or cancel first |