jfrog rt dl 未下载指定文件

jfrog rt dl  未下载指定文件

这是我尝试使用从artifactory下载zip文件的命令。

./jfrog rt dl https://ubit-artifactory-ba.xxxx.com/artifactory/my_repo/example.zip

我已经设置了 URL、服务器 ID、用户名和密码。

这是我的日志文件。

  1 [Debug] Sending HTTP GET request to: https://ubit-artifactory-*****/artifactory/api/system/version
  2 [Info] Searching items to download...
  3 [Debug] Searching Artifactory using AQL query:
  4  items.find({"repo": "https:","path": {"$ne": "."},"$or": [{"$and":[{"path": {"$match": "/ubit-artifactory-ba.intel.com/artifacto    ry/owr-repos/Submissions/csme/14.0.20.7206_ww23.2_20.18"},"name": {"$match": "CSME-14.0.20.7206-CML.json"}}]}]}).include("name","    repo","path","actual_md5","actual_sha1","size","type","property")
  5 [Debug] Sending HTTP POST request to: https://ubit-artifactory****/artifactory/api/search/aql
  6 [Debug] The Artifactory version is: 5.3.0
  7 [Debug] Expected Artifactory version 6.9.0 or above, got 5.3.0
  8 [Debug] Artifactory response:  200 OK
  9 [Debug] Downloaded 0 artifacts.

这是我的配置文件:

Server ID: CSME
Url: https://ubit-artifactory-ba.xxxx.com/artifactory/
User: abcd
Password: ***
Default:  true

答案1

回答我的问题:

下载路径必须指定为配置中除 URL 之外的其余路径。

例如在上面的例子中:

配置中指定的 URL 是https://ubit-artifactory-ba.xxxx.com/artifactory/并且指定的下载路径是https://ubit-artifactory-ba.xxxx.com/artifactory/my_repo/example.zip

但下载路径必须是my_repo/example.zip。

这应该可行。

相关内容