**Notes:**
- Introduced in GitSwarm 2016.1 and GitLab Runner 0.7.0.
- Starting from GitSwarm 2016.1 and GitLab Runner 1.0, the artifacts archive format changed to
ZIP
.- This is the administration documentation. For the user guide see user/project/builds/artifacts.md.
Artifacts is a list of files and directories which are attached to a build after it completes successfully. This feature is enabled by default in all GitLab installations. Keep reading if you want to know how to disable it.
To disable artifacts site-wide, follow the steps below.
In package installations:
Edit /etc/gitswarm/gitswarm.rb
and add the following line:
gitlab_rails['artifacts_enabled'] = false
Save the file and [reconfigure GitSwarm][] for the changes to take effect.
In source installations:
Edit /home/git/gitlab/config/gitlab.yml
and add or amend the following lines:
artifacts:
enabled: false
Save the file and [restart GitSwarm][] for the changes to take effect.
After a successful build, GitLab Runner uploads an archive containing the build artifacts to GitSwarm.
To change the location where the artifacts are stored, follow the steps below.
In package installations:
The artifacts are stored by default in /var/opt/gitswarm/gitlab-rails/shared/artifacts
.
To change the storage path for example to /mnt/storage/artifacts
, edit /etc/gitswarm/gitswarm.rb
and add the following line:
gitlab_rails['artifacts_path'] = "/mnt/storage/artifacts"
Save the file and [reconfigure GitSwarm][] for the changes to take effect.
In source installations:
The artifacts are stored by default in /home/git/gitlab/shared/artifacts
.
To change the storage path for example to /mnt/storage/artifacts
, edit /home/git/gitlab/config/gitlab.yml
and add or amend the following lines:
artifacts:
enabled: true
path: /mnt/storage/artifacts
Save the file and [restart GitSwarm][] for the changes to take effect.
Provided the artifacts are enabled, you can change the maximum file size of the artifacts through the Admin area settings.