Gitlab CI Reference

Gitlab is a DevSecOps Plattform

Youtube: GitLab DevSecOps Platform End to End demo

Examples

Gitlab CI Variables

Gitlab CI Jobs

  • after_script runs even if script fails

Gitlab CI Caching & Artfifacts

  • Use Artifacts for downloading created artifacts, or passing them to other jobs
  • Use Cache across pipeline runs

Gitlab CI Caveats

  • Scheduled Pipelines only work if previous jobs are not manual, and have allow_failure: true
    • requires removing needs keyword if they require previous manual jobs
  • rules:changes and rules:if cannot be combined
    • Both things enable a pipeline, so either the if condition is true or the file was changed

Gitlab CI Workflows