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
f7c13255
Commit
f7c13255
authored
Mar 30, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport part of the doc/api/jobs.md file from EE
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
7b047094
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
doc/api/jobs.md
doc/api/jobs.md
+9
-5
No files found.
doc/api/jobs.md
View file @
f7c13255
...
@@ -294,9 +294,10 @@ Example of response
...
@@ -294,9 +294,10 @@ Example of response
## Get job artifacts
## Get job artifacts
> [Introduced][ce-2893] in GitLab 8.5
> **Notes**:
-
[
Introduced
][
ce-2893
]
in GitLab 8.5.
Get job artifacts of a project
Get job artifacts of a project
.
```
```
GET /projects/:id/jobs/:job_id/artifacts
GET /projects/:id/jobs/:job_id/artifacts
...
@@ -307,8 +308,10 @@ GET /projects/:id/jobs/:job_id/artifacts
...
@@ -307,8 +308,10 @@ GET /projects/:id/jobs/:job_id/artifacts
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
|
`job_id`
| integer | yes | The ID of a job |
|
`job_id`
| integer | yes | The ID of a job |
Example requests:
```
```
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts"
curl --
location --
header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/jobs/8/artifacts"
```
```
Response:
Response:
...
@@ -322,7 +325,8 @@ Response:
...
@@ -322,7 +325,8 @@ Response:
## Download the artifacts archive
## Download the artifacts archive
> [Introduced][ce-5347] in GitLab 8.10.
> **Notes**:
-
[
Introduced
][
ce-5347
]
in GitLab 8.10.
Download the artifacts archive from the given reference name and job provided the
Download the artifacts archive from the given reference name and job provided the
job finished successfully.
job finished successfully.
...
@@ -339,7 +343,7 @@ Parameters
...
@@ -339,7 +343,7 @@ Parameters
|
`ref_name`
| string | yes | The ref from a repository (can only be branch or tag name, not HEAD or SHA) |
|
`ref_name`
| string | yes | The ref from a repository (can only be branch or tag name, not HEAD or SHA) |
|
`job`
| string | yes | The name of the job |
|
`job`
| string | yes | The name of the job |
Example request:
Example request
s
:
```
```
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/download?job=test"
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/master/download?job=test"
...
...
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