Skip to content

Keep latest artifact for ref

Matija Čupić requested to merge mc/feature/keep-latest-artifact-for-ref into master

What does this MR do?

Related #16267 (closed)

Keep the latest artifact for any given ref regardless of its expiry time.

This adds a locked column to the ci_job_artifacts table and changes the expiry mechanism to delete only artifacts that are not locked. The latest artifact for any ref is locked on creation.

Does this MR meet the acceptance criteria?

Conformity

Edited by Matija Čupić

Merge request reports