Docs feedback: CI Cache edge cases not described
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
- Setting up CI pipeline - docs have outdated examples
- CI caching documentation seem insufficent
Further details
- Getting Started with CI/CD in official docs ends with an example file - but viewing the docs for the YAML settings says many of the global keys in the example are outdated and could be deprecated
- the example file for Caching: How Archiving and Extracting Works shows a
cacheentry with nopathskey - this doesn't appear to be valid syntax, since without it, the cache appears to not be pulled down, contrary to what is described - the docs say that the
cache: policydefined in adefaultblock will apply to jobs that do not override it, but the docs fail to mention that if you includepaths, the policy reverts back topull-push
Proposal
- fix the getting started guide to not use outdated global keys
- fix the example file to explain how caching works with and with
pathsdefined (i.e. it doesn't?) - fix the docs to indicate that
policymust always be defined in a local job, and won't be inherited from adefaultblock, ifpathsare included
Who can address the issue
Someone with more knowledge of the inner workings of the YAML file than I.
Other links/references
Edited by 🤖 GitLab Bot 🤖