- [BREAKING CHANGE] The version does not support python configuration anymore, use YAML
artifactory-cleanup.yamlconfig file to specify policies and rules. - [BREAKING CHANGE] No
under_scorenames for rules, onlyCamelCase - Support YAML configuration! #54 🎉
- Introduce new and stable (from this point) API for Rules #33
- Fix
KeepLatestNVersionImagesByPropertywrong behaviour #60 - Rename
DeleteEmptyFoldertoDeleteEmptyFolders - Rename
--policy-nameflag to--policy
Keep these in mind if you create your own Rules and going to update from 0.4.1 to 1.0.0.
In order to simplify API for Rule and CleanupPolicy and support some feature we have to introduce backward incompatible changes.
- Methods have been changed:
_aql_add_filter(aql_query_list)=>aql_add_filter(filters)_aql_add_text(aql_text)=>aql_add_text(aql)_filter_result(result_artifact)=>filter(artifacts)
filter(artifacts)must returnArtifactsListinstance, not just a list- Removed
artifactory_server. Read below about newself.session, probably you don't need it anymore - Renamed
self.artifactory_sessiontoself.session.- Call
self.session.get('/relative/path)- it adds Artifactory URL at the start of/relative/pathand callshttp://artifactory.example.com/relaive/path. - If you still need to get Artifactory URL in rules - get it with
self.session.base_url.
- Call
- Instead of
self.filter_result(self, result_artifacts)useartifacts.remove(artifacts_to_keep)method inself.filter
- Fix: Failed to run artifactory-cleanup-0.4.1 command #64
- Use
CamelCasestyle of rules by default. - Internal refactoring, add tests, remove unused code.
- Remove
--remove-empty-folderoption. Artifactory provides corresponding built-in functionality already - Change the
delete_empty_folderrule to not depend on an external plugin, but directly delete files from this script
- Previous versions do not yet have a changelog