Skip to content

Add support for `CI_CACHE_DIR`

Kamil Trzciński requested to merge add-support-for-cache-dir into master

What does this MR do?

This defines a set of new variables to control local caches similar to GIT_CLONE_PATH:

  • LOCAL_CACHE_PATH: the directory where local cache path is stored, the cache can store user data or ci.yml zip archives,
  • CI_BUILDS_CACHE_DIR: the base directory as defined by Runner where all caches are stored,
  • CI_CACHE_DIR: the path where the per-project or user controlled cache is stored.

This also enforces that default builds and cache path is always set.

Why was this MR needed?

Resolves #4113 (closed)

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Merge request reports