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 ...

Get GitLab Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.