How can I download last artifact in Artifactory?

情到浓时终转凉″ 提交于 2019-12-01 05:26:05

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 Artifactory commands: --sort-by --sort-order and --limit.

You can use these options to search, download, copy, move or delete the latest artifact created in Artifactory. For example, to download the latest file uploaded to the all-my-frogs folder in the my-local-repo repository, use the following command:

jfrog rt dl  "my-local-repo/all-my-frogs/" --sort-by=created
--sort-order=desc --limit=1
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!