Skip to content
GitLab
Next
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • GitLab.org GitLab.org
  • GitLab GitLab
  • Issues
  • #321323

Keep the most recent PipelineArtifact forever

Problem

As explained on our documentation, our system now keeps the most recent artifact.

By default, the latest artifacts from the most recent successful jobs are never deleted. If a job is configured with expire_in, its artifacts only expire if a more recent artifact exists.

This is not the case for PipelineArtifact which are automatically purged from the system after 1 week.

Proposal

We should refactor our PipelineArtifact purge mechanism to keep the most recent artifact and replicate the same behaviour we have with JobArtifact.

This is currently happening for 2 reports type:

  • CoverageReport
  • CodeQualityMrDiffReport

We could either inherit the same expiration date which is defined at the JobArtifact level or simply keep the most recent artifact by default.

cc @jheimbuck_gl @rickywiens @iamricecake @drew

Edited Feb 24, 2021 by Max Orefice
Assignee
Assign to
Time tracking