我需要删除超过一定天数的工件中我的一个存储库的工件版本。我的意思是假设我的人工 url repo 是:-
https://artifactory.mycompany.com/artifactory/myrepo/
在该 repo 下,几乎没有名称模式为 abc-*-xyz 的文件夹,这意味着这些文件夹的完全限定路径将是:-
https://artifactory.mycompany.com/artifactory/myrepo/abc-1-xyz
https://artifactory.mycompany.com/artifactory/myrepo/abc-2-xyz
https://artifactory.mycompany.com/artifactory/myrepo/abc-3-xyz
现在,在这些文件夹中的每一个下都存储了我只想删除的实际版本化工件文件夹,这意味着整个版本文件夹例如对于两个 url 将是:-
https://artifactory.mycompany.com/artifactory/myrepo/abc-1-xyz/ver_11
https://artifactory.mycompany.com/artifactory/myrepo/abc-1-xyz/ver_12
https://artifactory.mycompany.com/artifactory/myrepo/abc-2-xyz/ver_3
https://artifactory.mycompany.com/artifactory/myrepo/abc-2-xyz/ver_5
我可以看到下面的 stackoverflow 问题,并且能够使其适用于该用例,但无法为我的用例构建 AQL,以便我可以相应地拥有可用于删除我需要的规范文件。
任何帮助我构建 AQL 文件以及可以调用以进行实际删除的规范文件的任何帮助,将一如既往地感激不尽。