【发布时间】:2018-06-29 13:09:43
【问题描述】:
我正在使用 curl 从存储库中下载最新的工件,然后想将其下载到我的服务器。我怎样才能做到这一点。我正在使用以下命令获取 AQL。
curl -u 'uname:pwd' -X PUT https://testrepo.test.test/artifactory/api/search/aql -d 'items.find ({"repo":"snapshots"},{"name":{"$match":"test*.war"}}).sort({"$desc" : ["created"]}).limit(3)' -H "Content-Type: text/plain"
以下是我得到的 AQL -
{“结果”:[{“回购”:“快照”,“路径”: “******-SNAPSHOT”、“名称”:“*****.war”、“类型”:“文件”、“大小” :63059101,“创建”:“2018-05-31T08:39:11.353-05:00”,
“created_by”:“***_user”,“修改”: “2018-05-31T08:39:09.724-05:00”,“modified_by”:“****_user”,
“更新”:“2018-05-31T08:39:09.724-05:00”}],“范围”:{
“start_pos”:0,“end_pos”:1,“total”:1,“limit”:3}}
如何通过使用 Curl 解析此 AQL 来下载工件?
【问题讨论】:
标签: curl artifactory jfrog-cli