rodrigocprates
rodrigocprates

Reputation: 566

Artifactory - Explicity clean up old snapshots

According to docs, we may setup Max Unique Snapshots to discard old snapshots of an artifact at each new deploy.

And as written:

Redundant snapshots are not deleted immediately Every 5 minutes, Artifactory runs a background process that checks the value of Max Unique Snapshots and deletes the oldest snapshots beyond that number. For example, if you currently have 7 snapshots and set Max Unique Snapshots to 5 then next time the background process runs, it will delete the 2 oldest snapshots.

I have two questions:

Upvotes: 3

Views: 2651

Answers (2)

gavenkoa
gavenkoa

Reputation: 48753

Artifactory does not delete snapshots just because you decreased value Max Unique Snapshots. You need to push another snapshot to trigger cleanup process for given group+artifact+version.

In other words you need to delete manually old snapshots. Setting will be applied only for newly uploaded snapshots.

Upvotes: 2

JBaruch
JBaruch

Reputation: 22893

The 5 minutes period is not configurable, but should just work. What didn't work for you? Regarding performance issues - we really recommend upgrading to Artifactory 3. It shows 10 to 100 times performance improvements over version 2.

Upvotes: 0

Related Questions