summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Zajączkowski <mszpak@wp.pl>2017-09-04 17:04:51 +0000
committerMarcin Zajączkowski <mszpak@wp.pl>2017-09-04 17:04:51 +0000
commita8c40687748cb5952e4c1bddc8b2c68a43567b50 (patch)
treeb42bb4db82383c3d4de8b5721169b4882161cfbb
parent597bc29260c4be3a1527a1c5307bec40004bac4d (diff)
downloadgitlab-ce-a8c40687748cb5952e4c1bddc8b2c68a43567b50.tar.gz
Replace "/" with "-" in cache key
As a cache zip file with "/" upload seems to fail with 500 Internal Server Error.
-rw-r--r--doc/ci/yaml/README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index cacfd2ed254..4e925346ff5 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -276,7 +276,7 @@ To enable per-job and per-branch caching:
```yaml
cache:
- key: "$CI_JOB_NAME/$CI_COMMIT_REF_NAME"
+ key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
untracked: true
```
@@ -284,7 +284,7 @@ To enable per-branch and per-stage caching:
```yaml
cache:
- key: "$CI_JOB_STAGE/$CI_COMMIT_REF_NAME"
+ key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
untracked: true
```
@@ -293,7 +293,7 @@ If you use **Windows Batch** to run your shell scripts you need to replace
```yaml
cache:
- key: "%CI_JOB_STAGE%/%CI_COMMIT_REF_NAME%"
+ key: "%CI_JOB_STAGE%-%CI_COMMIT_REF_NAME%"
untracked: true
```
@@ -302,7 +302,7 @@ If you use **Windows PowerShell** to run your shell scripts you need to replace
```yaml
cache:
- key: "$env:CI_JOB_STAGE/$env:CI_COMMIT_REF_NAME"
+ key: "$env:CI_JOB_STAGE-$env:CI_COMMIT_REF_NAME"
untracked: true
```