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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b733d346
Commit
b733d346
authored
Nov 09, 2021
by
Marcel Amirault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dependencies from under the artifacts keyword
parent
a90adab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+24
-24
No files found.
doc/ci/yaml/index.md
View file @
b733d346
...
...
@@ -2689,33 +2689,12 @@ faster-test-job:
-
echo "Running tests..."
```
### `artifacts`
Use
`artifacts`
to specify a list of files and directories that are
attached to the job when it
[
succeeds, fails, or always
](
#artifactswhen
)
.
The artifacts are sent to GitLab after the job finishes. They are
available for download in the GitLab UI if the size is not
larger than the
[
maximum artifact size
](
../../user/gitlab_com/index.md#gitlab-cicd
)
.
By default, jobs in later stages automatically download all the artifacts created
by jobs in earlier stages. You can control artifact download behavior in jobs with
[
`dependencies`
](
#dependencies
)
.
When using the
[
`needs`
](
#artifact-downloads-with-needs
)
keyword, jobs can only download
artifacts from the jobs defined in the
`needs`
configuration.
Job artifacts are only collected for successful jobs by default, and
artifacts are restored after
[
caches
](
#cache
)
.
[
Read more about artifacts
](
../pipelines/job_artifacts.md
)
.
#### `dependencies`
### `dependencies`
Use the
`dependencies`
keyword to define a list of jobs to fetch
artifacts
from.
Use the
`dependencies`
keyword to define a list of jobs to fetch
[
artifacts
](
#artifacts
)
from.
You can also set a job to download no artifacts at all.
If you do not use
`dependencies`
, all
`artifacts`
from previous stages are passed to each job.
If you do not use
`dependencies`
, all
artifacts
from previous stages are passed to each job.
**Keyword type**
: Job keyword. You can use it only as part of a job.
...
...
@@ -2771,6 +2750,27 @@ the [stage](#stages) precedence.
-
If the artifacts of a dependent job are
[
expired
](
#artifactsexpire_in
)
or
[
deleted
](
../pipelines/job_artifacts.md#delete-job-artifacts
)
, then the job fails.
### `artifacts`
Use
`artifacts`
to specify a list of files and directories that are
attached to the job when it
[
succeeds, fails, or always
](
#artifactswhen
)
.
The artifacts are sent to GitLab after the job finishes. They are
available for download in the GitLab UI if the size is not
larger than the
[
maximum artifact size
](
../../user/gitlab_com/index.md#gitlab-cicd
)
.
By default, jobs in later stages automatically download all the artifacts created
by jobs in earlier stages. You can control artifact download behavior in jobs with
[
`dependencies`
](
#dependencies
)
.
When using the
[
`needs`
](
#artifact-downloads-with-needs
)
keyword, jobs can only download
artifacts from the jobs defined in the
`needs`
configuration.
Job artifacts are only collected for successful jobs by default, and
artifacts are restored after
[
caches
](
#cache
)
.
[
Read more about artifacts
](
../pipelines/job_artifacts.md
)
.
#### `artifacts:exclude`
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/15122) in GitLab 13.1
...
...
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