jfrog-cli

Artifactory AQL download artifact

℡╲_俬逩灬. 提交于 2019-12-04 16:44:58
Is there a way to download an artifact using AQL? I have a query sent with: curl -u user:pass \ -X POST https://artifactoryURL/artifactory/api/search/aql \ -H 'content-type: text/plain' \ -T query.aql And my query.aql : items.find( { "repo":{"$eq":"repo"}, "$and": [ { "path": { "$match": "path/*"}, "name": { "$match": "*.rpm"} } ] } ) .sort({ "$desc": ["modified"] }) .limit(1) Now that I know it returns what I want, Is there a way to change the request from api/search/aql to something like api/download/aql and get those items? EDIT: I had also tried doing this with the jfrog cli but they don't

How to upload an artifact to Jfrog Artifactory using Jfrog CLI?

半世苍凉 提交于 2019-12-04 02:11:25
问题 I'm trying to upload an artifact from Bamboo CI using CLI for Jfrog Artifactory I need to upload .p2 plugins and I have two options: Upload the .zip and deploy it as Bundle Artifact Upload the uncompressed folder with all subfolders and data. I'm trying to upload the uncompressed folder with all the subfolders and data using this command: jfrog rt upload --include-dirs=true ${bamboo.build.working.directory}/unzip/${bamboo.public.name-update-site}/* p2-release-local/${bamboo.public.name-update

How can I download last artifact in Artifactory?

情到浓时终转凉″ 提交于 2019-12-01 05:26:05
I have some artifacts in Artifactory (OpenSource): I can download an artifact from using jfrog CLI : jfrog rt config --user=admin --password=**** --url=http://foo:8081/artifactory jfrog rt download testproject/01_Develop/01_CI/HPCC-Package-70.zip --flat=true How can I download the LATEST(highest number) artifact? You can use the JFrog Cli search command . jfrog rt s "testproject/01_Develop/01_CI/HPCC-Package-*.zip" The search command will return a list of paths which you can then sort using external tools such as jq. JFrog CLI recently started supporting 3 new options from many of the

How can I download last artifact in Artifactory?

一个人想着一个人 提交于 2019-12-01 03:15:32
问题 I have some artifacts in Artifactory (OpenSource): I can download an artifact from using jfrog CLI : jfrog rt config --user=admin --password=**** --url=http://foo:8081/artifactory jfrog rt download testproject/01_Develop/01_CI/HPCC-Package-70.zip --flat=true How can I download the LATEST(highest number) artifact? 回答1: You can use the JFrog Cli search command. jfrog rt s "testproject/01_Develop/01_CI/HPCC-Package-*.zip" The search command will return a list of paths which you can then sort