Skipping cache extraction due to empty cache key
Background:
I created a new runner on a better development server, more cores and ram. But unfortunately caching seems to not work.
What questions are you trying to answer?
Why am I getting the following error:
Skipping cache extraction due to empty cache key
.
In my .gitlab-ci.yml
file I have the following cache block:
cache: key: "$CI_ENVIRONMENT_SLUG-$CI_JOB_NAME" paths: - node_modules/ - bower_components/
I have tried the following keys (with and without quotes or curly brackets):
"$CI_COMMIT_REF_SLUG"
${CI_BUILD_REF_NAME}
"hardCodedSlug"
Running yarn
in an install of lint block works but like expected takes a long time which you want to save using the node_modules folder as cache.
Hope you could help me out!