jfrog cli 错误 "wrong number of arguments" 当 运行 jfrog rt 配置

jfrog cli error "wrong number of arguments" when running jfrog rt config

我在构建 Docker 容器的 CI 管道中使用以下命令:

RUN curl -fL https://getcli.jfrog.io | sh \ && mv jfrog /usr/local/bin/jfrog \ && jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory

因错误而失败:[错误] 参数数量错误。:

Step 8/11 : RUN curl -fL https://getcli.jfrog.io | sh     && mv jfrog /usr/local/bin/jfrog     && jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory
 ---> Running in 975540bce561
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   178  100   178    0     0    329      0 --:--:-- --:--:-- --:--:--   330

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   985  100   985    0     0    782      0  0:00:01  0:00:01 --:--:--  3634
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

 83 19.2M   83 16.0M    0     0  10.6M      0  0:00:01  0:00:01 --:--:-- 10.6M
100 19.2M  100 19.2M    0     0  11.4M      0  0:00:01  0:00:01 --:--:-- 19.9M
[Error] Wrong number of arguments. You can read the documentation at https://www.jfrog.com/confluence/display/CLI/JFrog+CLI

我在我的本地机器上 运行 执行相同的命令并得到相同的行为。

这是我们在 CI 管道中 运行 的命令,上次 CI 管道 运行 是在 2018-04-19(大约3 周前),我可以看到那一次它成功了:

Step 8/11 : RUN curl -fL https://getcli.jfrog.io | sh     && mv jfrog /usr/local/bin/jfrog     && jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory
 ---> Using cache
 ---> 1b0de0d85655
Step 9/11 : etc...

我只能推断 jfrog CLI 中的某些内容在此期间发生了变化。根据 the documentation 我们发出的命令:

jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory

还可以。

希望这里有人能告诉我这个命令有什么问题,

事实证明,这是最新版本 CLI 中的重大更改。详情在这里:https://github.com/JFrogDev/jfrog-cli-go/issues/165