-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
In the AQL docs there are examples of sorting and limiting the results from a query.
Example:
items.find({"name" : {"$match":"*.jar"}).sort({"$asc" : ["repo","name"]}).offset(100).limit(50)
It would be great if this were also possible when using the download file specs in a pipeline (or other groovy step).
def downloadSpec = '''{ "files": [ { "aql": { "items.find": { "repo": "release-local", "path": { "$match": "/builds/master/*" }, "name": { "$match": "*.tar.gz" } }, "sort": { "$desc": ["updated"] }, "limit": 1 }, "target": "./", "regexp": "true" } ] }''' artifactoryServer.download(downloadSpec)
+1 for the feature request.
Trying all the ways around this limitation for past 2 days without luck.