I am trying to query which build number(s) produced artifacts from build foo
with artifact property vcs.Revision=aabbccddee123456
.
In Artifactory 5.1.3.
I was trying like this so far:
curl -u user:apikey -i -X POST https://artifactory.foobar.com/artifactory/api/search/aql -H "content-type:text/plain" -T query.json
query.json:
builds.find(
{
"module.artifact.item.repo":"snapshot-local",
"name":"foo",
"[email protected]":"aabbccddee123456"
}
)
However, none of these 3 lines seem individually correct:
builds.find({"module.artifact.item.repo":"snapshot-local"})
returns nothing,builds.find({"name":"foo"})
returns the same empty response,builds.find({"[email protected]":"aabbccddee123456"})
also returns this:
{
"results" : [ ],
"range" : {
"start_pos" : 0,
"end_pos" : 0,
"total" : 0
}
}
What am I doing wrong here? I do see in the webapp the builds I published with this name, and with the correct artifact properties.
build-publish
in CLI and publish build info in Jenkins. I also can see the build information in the browser, as well as the published artifacts and their properties, used dependencies, etc. – Sycamine