gogoair / lavatory

Tooling to define repository specific retention policies in Artifactory.
Apache License 2.0
21 stars 14 forks source link

added move functioanlity to move from one repo to another #19

Closed ndcampbell closed 6 years ago

ndcampbell commented 6 years ago

a policy can use this like:

def purgelist(artifactory):
    """Moves artifacts to yum-local after 3 days."""
    movable = artifactory.time_based_retention(keep_days=3)
    artifactory.move_artifacts(artifacts=movable, dest_repository='yum-local')
    return []
bazimov commented 6 years ago

Can we have a unit test for this one?

ndcampbell commented 6 years ago

@bazimov includes a unit test as well as restructured the documentation, part of restructuring included adding an example of using this new move functionality.