Commit 9522e3e8 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'clarify-cache-and-artifact-paths' into 'master'

Includes a note on valid paths for cache and artifacts in the
place users are most likely to learn about the feature.

## Why was this MR needed?

We get regular support requests relating to cache and artifacts
not being picked up outside the project root. It's intended
behaviour, and should be documented.

## What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1792

See merge request !6892
parents a7e9490d 3f8fa357
...@@ -159,7 +159,8 @@ Variables can be also defined on [job level](#job-variables). ...@@ -159,7 +159,8 @@ Variables can be also defined on [job level](#job-variables).
> Introduced in GitLab Runner v0.7.0. > Introduced in GitLab Runner v0.7.0.
`cache` is used to specify a list of files and directories which should be `cache` is used to specify a list of files and directories which should be
cached between builds. cached between builds. You can only use paths that are within the project
workspace.
**By default the caching is enabled per-job and per-branch.** **By default the caching is enabled per-job and per-branch.**
...@@ -606,8 +607,8 @@ You can see a simple example at https://gitlab.com/gitlab-examples/review-apps-n ...@@ -606,8 +607,8 @@ You can see a simple example at https://gitlab.com/gitlab-examples/review-apps-n
> - Build artifacts are only collected for successful builds by default. > - Build artifacts are only collected for successful builds by default.
`artifacts` is used to specify a list of files and directories which should be `artifacts` is used to specify a list of files and directories which should be
attached to the build after success. To pass artifacts between different builds, attached to the build after success. You can only use paths that are within the
see [dependencies](#dependencies). project workspace. To pass artifacts between different builds, see [dependencies](#dependencies).
Below are some examples. Below are some examples.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment