Docs feedback: Wrong use of `cache` in the Maven CI example
In the following CI example, the use of cache
is inappropriate and dangerous:
https://docs.gitlab.com/ce/ci/examples/artifactory_and_gitlab/index.html
The target/
directory is where the compiled files are. In the current state, the cache is potentially shared between multiple pipelines, which means that the target/
could be easily be corrupted if two pipelines are intermittently scheduled on the same runner.
I'm guessing the appropriate way to do this would be to use artifacts ?