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
36aa3e61
Commit
36aa3e61
authored
Jan 20, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add basic documentation for build artifacts
parent
a382ad99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
0 deletions
+52
-0
doc/README.md
doc/README.md
+1
-0
doc/ci/README.md
doc/ci/README.md
+1
-0
doc/ci/artifacts/README.md
doc/ci/artifacts/README.md
+50
-0
No files found.
doc/README.md
View file @
36aa3e61
...
...
@@ -30,6 +30,7 @@
-
[
User permissions
](
ci/permissions/README.md
)
-
[
API
](
ci/api/README.md
)
-
[
Triggering builds through the API
](
ci/triggers/README.md
)
-
[
Build artifacts
](
ci/artifacts/README.md
)
### CI Languages
...
...
doc/ci/README.md
View file @
36aa3e61
...
...
@@ -12,6 +12,7 @@
*
[
Using Variables
](
variables/README.md
)
*
[
Using SSH keys
](
ssh_keys/README.md
)
*
[
Triggering builds through the API
](
triggers/README.md
)
*
[
Build artifacts
](
artifacts/README.md
)
### Languages
...
...
doc/ci/artifacts/README.md
0 → 100644
View file @
36aa3e61
# Build artifacts
Since version 8.2 of GitLab and version 0.7.0 of GitLab Runner, build artifacts
created by GitLab Runner are uploaded to GitLab, and then you can download
artifacts archive using GitLab UI.
Since version 8.4 of GitLab and version 1.0 of GitLab Runner artifacts are
compressed using ZIP format and it is possible to browse content of such an
archive using GitLab UI, and then download a single file from inside it.
## Artifacts in .gitlab-ci.yml
Please look into
`.gitlab-ci.yml`
[
documentation
](
../yaml/README.md
)
.
## Artifacts archive format
Prior to version 8.4 of GitLab and 1.0 of GitLab Runner, build artifacts were
compressed using
`tar.gz`
format.
Since then, we use a ZIP format.
## How build artifacts are stored
After a successful build, GitLab Runner uploads an archive containing build
artifacts to GitLab. This archive is not extracted after that, so its save a
storage space.
## How do we access content of an artifacts archive
When GitLab receives an artifacts archive, archive metadata file is being
generated. Metadata file describes all entries that are located in artifacts
archive. This file is in a binary format, with additional GZIP compression.
It is possible then to browse artifacts using GitLab UI and artifacts browser.
TODO IMG
GitLab does not extract artifacts archive to make it possible to browse it. We
use artifacts metadata file instead that contains are relevant information.
This is especially important when there is a lot of artifacts, or an archive is
a very large file.
## How do we make files downloadable
When user clicks a regular file, then download of this particular file starts.
GitLab does not extract entire artifacts archive to send a single file to user.
Instead of extracting entire file, only one file is being extracted. It is not
necessary to extract large archive, just to download a small file that is
inside.
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