Commit a8c40687 authored by Marcin Zajączkowski's avatar Marcin Zajączkowski

Replace "/" with "-" in cache key

As a cache zip file with "/" upload seems to fail with 500 Internal Server Error.
parent 597bc292
...@@ -276,7 +276,7 @@ To enable per-job and per-branch caching: ...@@ -276,7 +276,7 @@ To enable per-job and per-branch caching:
```yaml ```yaml
cache: cache:
key: "$CI_JOB_NAME/$CI_COMMIT_REF_NAME" key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
untracked: true untracked: true
``` ```
...@@ -284,7 +284,7 @@ To enable per-branch and per-stage caching: ...@@ -284,7 +284,7 @@ To enable per-branch and per-stage caching:
```yaml ```yaml
cache: cache:
key: "$CI_JOB_STAGE/$CI_COMMIT_REF_NAME" key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
untracked: true untracked: true
``` ```
...@@ -293,7 +293,7 @@ If you use **Windows Batch** to run your shell scripts you need to replace ...@@ -293,7 +293,7 @@ If you use **Windows Batch** to run your shell scripts you need to replace
```yaml ```yaml
cache: cache:
key: "%CI_JOB_STAGE%/%CI_COMMIT_REF_NAME%" key: "%CI_JOB_STAGE%-%CI_COMMIT_REF_NAME%"
untracked: true untracked: true
``` ```
...@@ -302,7 +302,7 @@ If you use **Windows PowerShell** to run your shell scripts you need to replace ...@@ -302,7 +302,7 @@ If you use **Windows PowerShell** to run your shell scripts you need to replace
```yaml ```yaml
cache: cache:
key: "$env:CI_JOB_STAGE/$env:CI_COMMIT_REF_NAME" key: "$env:CI_JOB_STAGE-$env:CI_COMMIT_REF_NAME"
untracked: true untracked: true
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment