【问题标题】:Curl artifactory for latest artifact with artifact type具有工件类型的最新工件的卷曲工件
【发布时间】: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


    【解决方案1】:

    【讨论】:

    • 无论版本号如何,您将如何检索最新的 SNAPSHOT?似乎 Artifactory 可以为您提供最新 RELEASE 的文件路径或您知道主要/次要/修补程序编号的 SNAPSHOT 的路径,但如果您不这样做,它无法为您提供最新 SNAPSHOT 路径的路径对版本号一无所知。对吗?
    • 我已经回答了我自己的问题;)目前你不能,但这里有一张票 - jfrog.com/jira/browse/RTFACT-9666
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-01
    • 1970-01-01
    • 2019-12-21
    • 1970-01-01
    • 2023-04-04
    相关资源
    最近更新 更多