GitSwarm-EE 2017.1-1 Documentation


Build artifacts administration

**Notes:**

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.

Disabling build artifacts

To disable artifacts site-wide, follow the steps below.


In package installations:

  1. Edit /etc/gitswarm/gitswarm.rb and add the following line:

    gitlab_rails['artifacts_enabled'] = false
  2. Save the file and [reconfigure GitSwarm][] for the changes to take effect.


In source installations:

  1. Edit /home/git/gitlab/config/gitlab.yml and add or amend the following lines:

    artifacts:
      enabled: false
  2. Save the file and [restart GitSwarm][] for the changes to take effect.

Storing build artifacts

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.

  1. 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"
  2. 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.

  1. 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
  2. Save the file and [restart GitSwarm][] for the changes to take effect.

Set the maximum file size of the artifacts

Provided the artifacts are enabled, you can change the maximum file size of the artifacts through the Admin area settings.