使用AQL和清理旧文物对工件进行排序
我正在尝试从Jfrog文物中对文物列表进行排序,但要获取(请求的URL返回错误:400不良请求),在Jfrog Documentation( https://www.jfrog.com/confluence/confluence/display/display/jfrog/jfrog/artifactory+comparison+mmatrix 来源服务。在我们获得文物清单之后,需要从文物库中的子文件夹中删除旧文物。尝试使用CLI和AQL,但没有任何效果。
我们的回购URL看起来像这样
http://domainname/artifactory/repo/repo/folder/subfolder/test1.zip
喜欢测试1.zip 1.zip我们在该子文件夹中有许多文物(假设50)。在此方面寻求帮助,任何人都在这个问题上给我服务。谢谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然OSS版本不支持排序,但如果您想删除比某个时间段大的文物,则可以使用相对时间操作员,解析输出,并使用脚本删除这些文物。
您还可以指定a “ nofollow noreferrer”>特定日期。有几个比较操作员使用。
您可以使用以下AQL进行参考:
While sorting is not supported in OSS versions, if you would like to delete artifacts older than a certain time period, you can use Relative Time Operators, parse the output, and use a script to delete those artifacts.
You can also specify a specific date. There are several Comparison Operators that you can use.
You can use the below AQL for reference: