Cache Documentation is incorrect
Summary
Cache documentation located https://docs.gitlab.com/ce/ci/yaml/README.html#cache-key appears to be incorrect regarding powershell. It states the following:
If you use Windows PowerShell to run your shell scripts you need to replace $ with $env::
cache: key: "$env:CI_JOB_STAGE-$env:CI_COMMIT_REF_NAME" untracked: true```
This is incorrect. Using a powershell based gitlab runner, the above results in an invalid path for the cache.
Checking cache for :CI_COMMIT_REF_NAME-:CI_JOB_NAME...
FATAL: open ..\..\..\..\..\cache\projects\project\:CI_COMMIT_REF_NAME-:CI_JOB_NAME\cache.zip: The filename, directory name, or volume label syntax is incorrect.
Failed to extract cache
Using the default $CI_JOB_STAGE-CI_COMMIT_REF_NAME
works correctly in powershell.
Checking cache for ci-PDD...
Successfully extracted cache
This is using runner version 10.1.0
on gitlab 9.4.5-ee
.