Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
c2f68b7a
Commit
c2f68b7a
authored
Dec 07, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update document to use ci_validates_dependencies
parent
3b11df7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+4
-10
doc/user/project/pipelines/job_artifacts.md
doc/user/project/pipelines/job_artifacts.md
+8
-0
No files found.
doc/ci/yaml/README.md
View file @
c2f68b7a
...
...
@@ -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`
:
...
...
doc/user/project/pipelines/job_artifacts.md
View file @
c2f68b7a
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment