DrDroid
Resource Cheatsheet

GitLab CI

Quick reference guide and commands for GitLab CI.

Download PDF

Pipeline Information

gitlab-ci-local
Run CI pipelines locally

gitlab ci lint
Validate .gitlab-ci.yml

gitlab ci status
Check pipeline status

gitlab pipeline list
List pipelines

gitlab pipeline get
Get pipeline details

Job Management

gitlab job list
List jobs

gitlab job trace
Show job logs

gitlab job retry
Retry a failed job

gitlab job cancel
Cancel a running job

gitlab job artifacts
Download job artifacts

CI File Management

git grep -n 'keyword' -- '*gitlab-ci*'
Search in CI files

git blame .gitlab-ci.yml
See who changed CI file

gitlab project variable list
List CI variables

Runners

gitlab runner list
List available runners

gitlab runner verify
Verify runner configuration

gitlab-runner register
Register a new runner

gitlab-runner unregister
Unregister a runner

CI File Validation

gitlab-ci-lint
Validate CI file locally

gitlab-ci-local
Run CI pipeline locally