Warm tip: This article is reproduced from serverfault.com, please click

jenkins pipeline-如何使用REST API从jfrog工件中找到具有特定属性值的工件

(jenkins pipeline - how to find artifacts from jfrog artifactory that have a specific property value using REST API)

发布于 2020-11-29 08:49:14

我想搜索我的人工制品中具有某些属性的所有人工制品,

items.find({"@some_property" : {"$eq" : "some_value"}})

使用REST API时该如何做?

Questioner
yiaca
Viewed
0
user2851452 2020-11-29 21:16:04

这是一个例子:

以下AQL查询

items.find(
 {
 "repo":{"$eq":"mymavenrepo"},
 "name": {"$match" : "*.jar"}
 }
)

可以翻译成这个REST调用

http://localhost/artifactory/api/search/artifact?name=*jar&re
pos=jcenter-cache