- [BREAKING CHANGE] The version does not support python configuration anymore, use YAML
artifactory-cleanup.yaml
config file to specify policies and rules. - [BREAKING CHANGE] No
under_score
names for rules, onlyCamelCase
- Support YAML configuration! #54 🎉
- Introduce new and stable (from this point) API for Rules #33
- Fix
KeepLatestNVersionImagesByProperty
wrong behaviour #60 - Rename
DeleteEmptyFolder
toDeleteEmptyFolders
- Rename
--policy-name
flag 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 returnArtifactsList
instance, not just a list- Removed
artifactory_server
. Read below about newself.session
, probably you don't need it anymore - Renamed
self.artifactory_session
toself.session
.- Call
self.session.get('/relative/path)
- it adds Artifactory URL at the start of/relative/path
and 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
CamelCase
style of rules by default. - Internal refactoring, add tests, remove unused code.
- Remove
--remove-empty-folder
option. Artifactory provides corresponding built-in functionality already - Change the
delete_empty_folder
rule to not depend on an external plugin, but directly delete files from this script
- Previous versions do not yet have a changelog