Skip to content
Snippets Groups Projects
Commit 73f999d4 authored by Lars Kumbier's avatar Lars Kumbier
Browse files

Fixes an invalid documentation for the .gitlab-ci.yml cache:key

parent 498ade48
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -276,7 +276,7 @@ To enable per-branch caching:
 
```yaml
cache:
key: "$CI_COMMIT_REF_NAME"
key: "$CI_COMMIT_REF_SLUG"
untracked: true
```
 
Loading
Loading
@@ -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
```
 
Loading
Loading
@@ -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
```
 
Loading
Loading
@@ -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
```
 
Loading
Loading
@@ -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
```
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment