We have an Artifactory server that uses 220Gb - with the libs-snapshots-local repository using 98% of this storage.
When we looked at the configuration for the repository, we noted that the value for the Maven snapshot was set to: unique and that the value of Max Unique Snapshots was 0 .
We changed the value of Max Unique Snapshots to 5.
This works when we are still working on the snapshot, however, if we no longer use the snapshot (the release was made), it does not delete any of these files.
As an example: in the Snapshots repository, we have the following:
com/company/some/app/1.23-SNAPSHOT/.. (50+ artifacts) com/company/some/app/1.24-SNAPSHOT/.. (5 artifacts)
Artifactory stores the current SNAPSHOT directory ( 1.24-SNAPSHOT ) with a maximum of 5 artifacts, but the number of artifacts in the 1.23-SNAPSHOT directory never decreases.
Artifactory seems to use artifact deployment to trigger a cleanup check. So, if you no longer use this artifact, will the cleaning fail?
How can we get Artifactory to start removing redundant artifacts in the 1.23-SNAPSHOT folder?
source share