如何在Artifactory中下载最后的工件? [英] How can I download last artifact in Artifactory?

查看:147
本文介绍了如何在Artifactory中下载最后的工件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Artifactory(开放源代码)中有一些工件:

I have some artifacts in Artifactory (OpenSource):

我可以使用 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

如何下载最新(最高编号)工件?

推荐答案

您可以使用JFrog Cli

You can use the JFrog Cli search command.

jfrog rt s "testproject/01_Develop/01_CI/HPCC-Package-*.zip"

search命令将返回路径列表,然后您可以使用jq之类的外部工具对路径进行排序.

The search command will return a list of paths which you can then sort using external tools such as jq.

这篇关于如何在Artifactory中下载最后的工件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆