Artifacts and Caches
Part of the GitLab CI course
Every job in a pipeline starts from a clean checkout of your repository and runs inside a throwaway environment that is thrown away the instant the job finishes. That is a deliberate design, it is what keeps one job from silently depending on leftover state from another, but it raises an obvious question: if a job compiles a binary, or produces a test report, or downloads a folder of dependencies that took two...
Imagine a factory line where every station is wiped clean the moment its worker clocks out, materials and all, unless someone specifically boxes something up and hands it to the next station first. That is what a GitLab job's filesystem is like. A build job might run for two minutes, compile a program, and write it to a dist/ folder, but the instant that job's script finishes, its entire environment, dist/ included,...
Want to learn GitLab CI Artifacts and Caches in a real environment?
Click below, get a fresh Linux box with GitLab CI ready to go, and work through Artifacts and Caches hands-on with an AI tutor that knows your code.
Start this lessonArtifacts and CachesWhat you'll learn
- Artifacts paths
- Artifacts expire_in
- Downloading artifacts
- Cache key
- Cache paths
- Artifacts vs caches
Read this lesson in your language
All lessons in this course
11 lessons- 1What Is CI/CD20 min
- 2Your First Pipeline25 min
- 3Jobs and Stages30 min
- 4Variables and Secrets30 min
- 5Artifacts and Caches30 min
- 6Rules and Conditional Jobs30 min
- 7Docker Jobs and Services35 min
- 8Environments and Deployments30 min
- 9Includes and Templates30 min
- 10Runners30 min
- 11Capstone: Build, Test, Deploy60 min
