The cache parameter
To speed up build processes, you can cache certain files and directories between jobs and between different pipeline executions using the cache keyword. This is a more advanced strategy, but is really useful to reduce turnaround time in your CI/CD pipelines if you want builds to be tested, packaged, or deployed rapidly. The cache parameter can take a few different parameters itself to help define the caching rules. Please note that caching can be defined locally (per-job) or globally, and that local caches will override any global declarations.
To manually clear caches, you can open the GitLab web user interface for your project and navigate to CI/CD | Pipelines using the menus on the left. From here, click the Clear Runner ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access