用于工件类型为的最新工件的Curl artifactory

用于工件类型为的最新工件的Curl artifactory,curl,artifactory,Curl,Artifactory,我想从artifactory下载一个扩展名为“.war”的最新工件。所以我正在尝试curl artifactory来下载最新版本的artifact 我正在尝试的curl命令,curl”https://artifactory.xxx.com/artifactory/api/search/pattern?pattern=bds-快照:com/test/sample/mobileprojectapi/0.0.1-snapshot/*.war“ 有人能帮我在artifactory中使用curl命令下载最

我想从artifactory下载一个扩展名为“.war”的最新工件。所以我正在尝试curl artifactory来下载最新版本的artifact

我正在尝试的curl命令,
curl”https://artifactory.xxx.com/artifactory/api/search/pattern?pattern=bds-快照:com/test/sample/mobileprojectapi/0.0.1-snapshot/*.war“


有人能帮我在artifactory中使用curl命令下载最新的工件吗。谢谢

对于此用途,您有“检索最新工件”端点:

无论版本号如何,您将如何检索最新的快照?似乎Artifactory既可以为您提供最新版本的文件路径,也可以为您提供快照的路径,其中您知道主/次/热修复程序编号,但如果您不知道任何版本号,则它无法为您提供最新快照路径的路径。对吗?我已经回答了我自己的问题;)目前你不能,但这里有一张票-
But the output of this curl is fetching all the artifacts as below
files: [
"com/test/sample/mobile-project-api/1.0.0-SNAPSHOT/mobile-project-api-0.0.1-20170818.13548-103.war",
"com/test/sample/mobile-project-api/1.0.0-SNAPSHOT/mobile-project-api-0.0.1-20171005.214754-171.war",
"com/test/sample/mobile-project-api/1.0.0-SNAPSHOT/mobile-project-api-0.0.1-20171120.213458-241.war",
"com/test/sample/mobile-project-api/1.0.0-SNAPSHOT/mobile-project-api-0.0.1-20170426.162605-4.war",
 "com/test/sample/mobile-project-api/1.0.0-SNAPSHOT/mobile-project-api-0.0.1-20170907.193242-118.war",
 "com/test/sample/mobile-project-api/1.0.0-SNAPSHOT/mobile-project-api-0.0.1-20170616.143453-34.war",
 "com/test/sample/mobile-project-api/1.0.0-SNAPSHOT/mobile-project-api-0.0.1-20170803.221511-77.war",
 ]
}