diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-09-19 15:47:46 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-09-19 15:47:46 +0000 |
commit | c12035f9dc0b871396fb3217da4f16890cb56a59 (patch) | |
tree | 23863aa2c815b273a87dc0f96c81ca5c347db81b | |
parent | c60bdf91895c64683e937715d4b821e844daf5ee (diff) | |
parent | 0f84309200ca5f9b446af782b4ad021b10f135c3 (diff) | |
download | gitlab-ce-c12035f9dc0b871396fb3217da4f16890cb56a59.tar.gz |
Merge branch 'patch-2' into 'master'
Replace "/" with "-" in cache key documentation
See merge request gitlab-org/gitlab-ce!14034
-rw-r--r-- | doc/ci/yaml/README.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index f69d71a5c39..aad81843299 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -252,6 +252,8 @@ The `cache:key` variable can use any of the [predefined variables](../variables/ The default key is **default** across the project, therefore everything is shared between each pipelines and jobs by default, starting from GitLab 9.0. +>**Note:** The `cache:key` variable cannot contain the `/` character. + --- **Example configurations** @@ -276,7 +278,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 +286,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 +295,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 +304,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 ``` |