【发布时间】:2018-04-20 20:08:15
【问题描述】:
我想从 artifactory 下载一个带有扩展名“.war”的最新工件。所以我正在尝试 curl 工件以下载最新版本的工件。
我正在尝试的 curl 命令,curl "https://artifactory.xxx.com/artifactory/api/search/pattern?pattern=bds-snapshot:com/test/sample/mobile-project-api/0.0.1-SNAPSHOT/*.war"
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",
]
}
有人可以帮助我在工件中使用 curl 命令下载最新的工件。谢谢!
【问题讨论】:
标签: curl artifactory