devopshq/artifactory-cleanup

Repo name doesn't allow for "/" paths

Christoffer-Cortes opened this issue · 1 comments

When putting a repo name that is pathed "repo/my/folder" it's specifically not allowed in the init of Repo rules.
In the check function I can see a /api/storage/ request is made and that one works fine using a "/" repo path.
How is one supposed to clean up a sub folder then using this lib?

Hi! You should use IncludePath and other filters - https://github.com/devopshq/artifactory-cleanup#filters

      rules:
        - rule: Repo
          name: "reponame"
        - rule: DeleteOlderThan
          days: 7
        - rule: IncludePath
          masks: "*my/folder*"