GitLab CI/CD 1 · Pipeline basics

Run setup and cleanup commands

Run commands before and after a job's script.

test-job:
  before_script:
    - npm ci
  script:
    - npm test
  after_script:
    - echo "Done"

Official GitLab CI/CD 1 documentation

More pipeline basics commands

All pipeline basics commands · GitLab CI/CD 1 cheatsheet

Was this page helpful?