devopshq / artifactory-cleanup

Extended cleanup tool for JFrog Artifactory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set retention policy in jfrog Artifactory

vivuu1989 opened this issue · comments

Looking for a way to set retention period in JFrog antifactory, which will remove SNAPSHOT versions older than 100 days.

If any teams need particular files need to be keep in artifactory for ever, need to exclude some path alone in that repo from retention policy and other directories should be removed as per the retention policy.

commented

Please get familiar with the tool first, try to play with it and ask detailed questions if you have any
https://github.com/devopshq/artifactory-cleanup#readme

The best way to filter artifacts - move them from snapshot repository to some sort of "release" repository where no policy applied. So you just need to apply DeleteOlderThan + Repo rules in a cleanup policy

Another way is to exclude them by a property with PropertyNeq rule, like keepForever: true