Skip to content
Latchkey

What Is Artifact Retention?

Artifact retention is the configured period for which a CI system keeps build outputs, logs, coverage reports, and other artifacts before deleting them automatically. Shorter retention saves storage and cost; longer retention preserves history for debugging, audits, and reproducing past releases. Most platforms let you set a default and override it per artifact.

Why it matters

Artifacts accumulate fast and storage is not free, so unbounded retention quietly inflates costs. Too-short retention, though, means a failed release can no longer be inspected. The right policy balances debuggability and compliance against storage spend.

Related concepts

  • Distinct from cache, which is for speeding builds, not archival
  • Release artifacts often need longer retention for rollbacks
  • Provenance and SBOMs may have regulatory retention requirements

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →