summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-12-07 23:16:57 +0900
committerShinya Maeda <shinya@gitlab.com>2017-12-07 23:16:57 +0900
commitc2f68b7ae319cb732eeaf53ddd020702644dc70d (patch)
tree4fae8978b0a57f30c16054aa3bcaa7983fe44ffc
parent3b11df7bee6d574488a394b46ced22a824d5081d (diff)
downloadgitlab-ce-c2f68b7ae319cb732eeaf53ddd020702644dc70d.tar.gz
Update document to use ci_validates_dependencies
-rw-r--r--doc/ci/yaml/README.md14
-rw-r--r--doc/user/project/pipelines/job_artifacts.md8
2 files changed, 12 insertions, 10 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index ea151853f50..ac5d99c71fc 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -1153,22 +1153,16 @@ deploy:
script: make deploy
```
-### Validations for `dependencies` keyword
-
+>**Note:**
> Introduced in GitLab 10.3
+> This is the user documentation. For the administration guide see
+ [administration/job_artifacts](../../../administration/job_artifacts.md#validation_for_dependency).
-`dependencies` keyword doesn't check the depended `artifacts` strictly. Therefore
-they do not fail even though it falls into the following conditions.
+If a depended job doesn't have artifacts by the following reason, the depending job will fail.
1. A depended `artifacts` has been [erased](https://docs.gitlab.com/ee/api/jobs.html#erase-a-job).
1. A depended `artifacts` has been [expired](https://docs.gitlab.com/ee/ci/yaml/#artifacts-expire_in).
-To validate those conditions, you can flip the feature flag from a rails console:
-
-```
-Feature.enable('ci_validates_dependencies')
-```
-
### before_script and after_script
It's possible to overwrite the globally defined `before_script` and `after_script`:
diff --git a/doc/user/project/pipelines/job_artifacts.md b/doc/user/project/pipelines/job_artifacts.md
index f9a268fb789..f8675f77856 100644
--- a/doc/user/project/pipelines/job_artifacts.md
+++ b/doc/user/project/pipelines/job_artifacts.md
@@ -163,6 +163,14 @@ information in the UI.
![Latest artifacts button](img/job_latest_artifacts_browser.png)
+## Validation for `dependency` keyword
+
+To disable [the validation for dependency], you can flip the feature flag from a rails console:
+
+```
+Feature.enable('ci_disable_validates_dependencies')
+```
[expiry date]: ../../../ci/yaml/README.md#artifacts-expire_in
+[the validation for dependency]: ../../../ci/yaml/README.md#dependencies
[ce-14399]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14399