Managing (older) CI artifacts in GitLab CE Omnibus
<p>Good day all,</p>

<p>I run a GitLab CE Omnibus (8.4.3) installation for my company.  We recently started using CI, but still mainly for generating documentation.  Binary builds is in the process of being added.  </p>

<p>As part of the system, I run a daily backup task (using <code>gitlab-rake gitlab:backup:create</code>).  Over the last couple of days, these artifacts have started becoming extremely large, even though it is just documentation at this stage (doxygen generated images seem to be the major source of the problem).  Because artifacts are included in the backup, daily backups (current strategy keeps 2 weeks' worth) have become unwieldy in size.</p>

<p>I've searched a fair bit for some answers, but most of the hits I get seem to be related to feature requests at this stage.  I'm aware that CI is still <em>relatively</em> new, but I would imagine artifact management is reasonably high on the requirements list.</p>

<p>I have three questions:</p>

<ol>
<li><p>Is there a way to manage/delete older artifacts in GitLab, short of manually deleting them from the disk (and possibly breaking links in the process)?  It would be ideal if this process could be automated.</p></li>
<li><p>Following on from 1, is it possible to target specific classes of artifacts in the cleaning strategy (ie, only delete older documentation targets, but not binaries, etc)?</p></li>
<li><p>Is it possible to either entirely, or based on CI target types, exclude artifacts from the recommended <code>gitlab-rake gitlab:backup:create</code> backup procedure?</p></li>
</ol>

<p>Any links, tips or advice would be highly appreciated!</p>

<p>Kind regards,</p>

<p>[UPDATE] Some more reading, yielded the following:</p>

<ol>
<li><p>As of Gitlab 8.5, I can manually delete single build artifacts.  This helps, but is not scalable.  Timeline for proper artifact management (including expiry dates, etc) seems to be Gitlab 8.7.</p></li>
<li><p>There seems to be no clear request for handling of different build target artifacts in different ways yet.</p></li>
<li><p>No information on removing artifacts from the backup task.</p></li>
</ol>