From d0e5acd9ba12dce4918ab21e52e515188a87abf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cindy=20Pallares=20=F0=9F=A6=89?= Date: Fri, 2 Feb 2018 19:00:50 +0000 Subject: Add CI job trace default location to docs --- doc/user/admin_area/settings/continuous_integration.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/doc/user/admin_area/settings/continuous_integration.md b/doc/user/admin_area/settings/continuous_integration.md index eb6f915f3f4..c02aea70886 100644 --- a/doc/user/admin_area/settings/continuous_integration.md +++ b/doc/user/admin_area/settings/continuous_integration.md @@ -36,3 +36,20 @@ expiration. [art-yml]: ../../../administration/job_artifacts.md [duration-syntax]: ../../../ci/yaml/README.md#artifactsexpire_in + +## Configuring job trace location + +By default all job traces are saved to `/var/opt/gitlab/gitlab-ci/builds`. The +job logs are organized by the year and month (for example, `2017_03`) and then +by project ID. + +Currently, there isn't a way to automatically expire old build logs, but it's +safe to remove these if they're taking up too much space. If you remove these +logs manually, the job output in the UI will be empty. + +To change the location of these logs you can change the following value +in your `gitlab.rb`: + +``` +gitlab_ci['builds_directory'] = '/mnt/to/gitlab-ci/builds' +``` -- cgit v1.2.1