diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-10-16 09:31:40 +0000 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-10-16 09:31:40 +0000 |
commit | 9522e3e89c010aed27ed392ff4749b58ed2c59c4 (patch) | |
tree | 0bc985fcb04b53ab7bd4d51051f3651b5a4773e9 /doc | |
parent | a7e9490d122a9bf547f16ade1ec00765363f09b2 (diff) | |
parent | 3f8fa3576509e2c90fbf9c18450e3daede32deac (diff) | |
download | gitlab-ce-9522e3e89c010aed27ed392ff4749b58ed2c59c4.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ci/yaml/README.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 59399861a97..84ea59ab687 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -159,7 +159,8 @@ Variables can be also defined on [job level](#job-variables). > Introduced in GitLab Runner v0.7.0. `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.** @@ -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. `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, -see [dependencies](#dependencies). +attached to the build after success. You can only use paths that are within the +project workspace. To pass artifacts between different builds, see [dependencies](#dependencies). Below are some examples. |