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
Jérome Perrin
gitlab-ce
Commits
d540d43e
Commit
d540d43e
authored
Aug 30, 2017
by
Marcia Ramos
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'docs-improve-latest-artifacts' into 'master'
Update latest artifacts doc See merge request !13924
parents
d6e956d3
ee62e972
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
doc/user/project/pipelines/job_artifacts.md
doc/user/project/pipelines/job_artifacts.md
+11
-6
No files found.
doc/user/project/pipelines/job_artifacts.md
View file @
d540d43e
...
...
@@ -100,16 +100,21 @@ inside GitLab that make that possible.
It is possible to download the latest artifacts of a job via a well known URL
so you can use it for scripting purposes.
>**Note:**
The latest artifacts are considered as the artifacts created by jobs in the
latest pipeline that succeeded for the specific ref.
Artifacts for other pipelines can be accessed with direct access to them.
The structure of the URL to download the whole artifacts archive is the following:
```
https://example.com/<namespace>/<project>/
build
s/artifacts/<ref>/download?job=<job_name>
https://example.com/<namespace>/<project>/
-/job
s/artifacts/<ref>/download?job=<job_name>
```
To download a single file from the artifacts use the following URL:
```
https://example.com/<namespace>/<project>/
build
s/artifacts/<ref>/raw/<path_to_file>?job=<job_name>
https://example.com/<namespace>/<project>/
-/job
s/artifacts/<ref>/raw/<path_to_file>?job=<job_name>
```
For example, to download the latest artifacts of the job named
`coverage`
of
...
...
@@ -117,26 +122,26 @@ the `master` branch of the `gitlab-ce` project that belongs to the `gitlab-org`
namespace, the URL would be:
```
https://gitlab.com/gitlab-org/gitlab-ce/
build
s/artifacts/master/download?job=coverage
https://gitlab.com/gitlab-org/gitlab-ce/
-/job
s/artifacts/master/download?job=coverage
```
To download the file
`coverage/index.html`
from the same
artifacts use the following URL:
```
https://gitlab.com/gitlab-org/gitlab-ce/
build
s/artifacts/master/raw/coverage/index.html?job=coverage
https://gitlab.com/gitlab-org/gitlab-ce/
-/job
s/artifacts/master/raw/coverage/index.html?job=coverage
```
There is also a URL to browse the latest job artifacts:
```
https://example.com/<namespace>/<project>/
build
s/artifacts/<ref>/browse?job=<job_name>
https://example.com/<namespace>/<project>/
-/job
s/artifacts/<ref>/browse?job=<job_name>
```
For example:
```
https://gitlab.com/gitlab-org/gitlab-ce/
build
s/artifacts/master/browse?job=coverage
https://gitlab.com/gitlab-org/gitlab-ce/
-/job
s/artifacts/master/browse?job=coverage
```
The latest builds are also exposed in the UI in various places. Specifically,
...
...
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