我在构建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中的某些内容已经发生了变化。根据文献资料,我们发出的命令:
jfrog rt config --interactive false --url https://artifactory.myorg.com/artifactory都没问题。
希望这里有人能告诉我这个命令出了什么问题,
发布于 2018-05-11 17:40:16
事实证明,这是CLI最新版本中的一个重大变化。详细信息:https://github.com/JFrogDev/jfrog-cli-go/issues/165
https://stackoverflow.com/questions/50290904
复制相似问题