summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Kumbier <lars@kumbier.it>2018-02-10 16:15:15 +0100
committerLars Kumbier <lars@kumbier.it>2018-02-10 16:15:15 +0100
commit73f999d436b438b61efed262fba70497c40808e9 (patch)
tree87cb340e9f8534a72606cea56ade1aaea5abdbeb /doc
parent498ade4801a822f8704390b10d178af9fe7987cb (diff)
downloadgitlab-ce-73f999d436b438b61efed262fba70497c40808e9.tar.gz
Fixes an invalid documentation for the .gitlab-ci.yml cache:key
Diffstat (limited to 'doc')
-rw-r--r--doc/ci/yaml/README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 4a650303d45..80ab63468f2 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -276,7 +276,7 @@ To enable per-branch caching:
```yaml
cache:
- key: "$CI_COMMIT_REF_NAME"
+ key: "$CI_COMMIT_REF_SLUG"
untracked: true
```
@@ -284,7 +284,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_SLUG"
untracked: true
```
@@ -292,7 +292,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_SLUG"
untracked: true
```
@@ -301,7 +301,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_SLUG%"
untracked: true
```
@@ -310,7 +310,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_SLUG"
untracked: true
```