GitLab CI/CD 1 · Caching, artifacts and ordering
Pass files to later jobs
Keep build output so later jobs and people can download it.
build-job:
script:
- npm run build
artifacts:
paths:
- dist/
expire_in: 1 week
Official GitLab CI/CD 1 documentation
More caching, artifacts and ordering commands
- Cache dependencies
- Start a job as soon as dependencies finish
- Run a job for several versions
- Start a database for tests
- Show test results in merge requests
All caching, artifacts and ordering commands · GitLab CI/CD 1 cheatsheet