diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-03-22 12:36:31 +0000 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-03-22 12:36:31 +0000 |
commit | afef35e93360e2e1a78698fe7e9085247d32b356 (patch) | |
tree | 5cf9693010b0844f17b149652ff7bca510241159 | |
parent | af87f802746786c23d680aa1d85e89604d315932 (diff) | |
parent | fade3e24514a0e3d86a65f71c0f2d282c6b3f328 (diff) | |
download | gitlab-ce-afef35e93360e2e1a78698fe7e9085247d32b356.tar.gz |
Merge branch 'docs/cache-clear-image' into 'master'
Add image for clearing the cache docs
Closes gitlab-ee#4642
See merge request gitlab-org/gitlab-ce!17932
-rw-r--r-- | doc/ci/caching/img/clear_runners_cache.png | bin | 0 -> 16029 bytes | |||
-rw-r--r-- | doc/ci/caching/index.md | 18 |
2 files changed, 10 insertions, 8 deletions
diff --git a/doc/ci/caching/img/clear_runners_cache.png b/doc/ci/caching/img/clear_runners_cache.png Binary files differnew file mode 100644 index 00000000000..e5db4a47b3e --- /dev/null +++ b/doc/ci/caching/img/clear_runners_cache.png diff --git a/doc/ci/caching/index.md b/doc/ci/caching/index.md index c4b2a25d4a8..c159198d16b 100644 --- a/doc/ci/caching/index.md +++ b/doc/ci/caching/index.md @@ -454,17 +454,19 @@ next run of the pipeline, the cache will be stored in a different location. > [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/41249) in GitLab 10.4. If you want to avoid editing `.gitlab-ci.yml`, you can easily clear the cache -via GitLab's UI. This will have an impact on all caches of your project as -name of the cache directory will be renamed by appending an integer to it -(`-1`, `-2`, etc.): +via GitLab's UI: -1. Navigate to your project's **CI/CD > Pipelines** page. -1. Click on the **Clear Runner caches** to clean up the cache. -1. On the next push, your CI/CD job will use a new cache. +1. Navigate to your project's **CI/CD > Pipelines** page +1. Click on the **Clear Runner caches** button to clean up the cache + +  + +1. On the next push, your CI/CD job will use a new cache Behind the scenes, this works by increasing a counter in the database, and the -value of that counter is used to create the key for the cache. After a push, a -new key is generated and the old cache is not valid anymore. +value of that counter is used to create the key for the cache by appending an +integer to it: `-1`, `-2`, etc. After a push, a new key is generated and the +old cache is not valid anymore. ## Cache vs artifacts |