附加到 URL 的存储库名称

name of repository being appended to URL

我正在尝试使用 JFrog CLI 中的以下命令将文件上传到我的存储库:

jfrog rt u ".\Builds\mybuild.apk" buildrepo-generic-local --url=https://buildrepo-generic-local.artifactory.mycompany.com/artifactory/buildrepo-generic-local/Gitlab/mybuild/client/Test --user=myuser --password=mypass --build-name BuildName --build-number=0000

但它在 url 上附加了 repo 的名称,因此它实际上被上传到:

<a href="https://buildrepo-generic-local.artifactory.mycompany.com/artifactory/buildrepo-generic-local/Gitlab/mybuild/client/Test/" rel="nofollow noreferrer">https://buildrepo-generic-local.artifactory.mycompany.com/artifactory/buildrepo-generic-local/Gitlab/mybuild/client/Test/</a><b>buildrepo-generic-local</b>/mybuild.apk

而不是我想要的位置:

https://buildrepo-generic-local.artifactory.mycompany.com/artifactory/buildrepo-generic-local/Gitlab/mybuild/client/Test/mybuild.apk

我是新手所以可能是我做错了什么,有人帮忙吗?

上传命令的第二个参数是Artifactory中的目标路径。在你的情况下是:

buildrepo-generic-local/Gitlab/mybuild/client/Test/mybuild.apk

url 标志是您没有路径的 Artifactory 的 url:

--url=https://buildrepo-generic-local.artifactory.mycompany.com/artifactory/

有关更多详细信息,请参阅 JFrog CLI documentation