我正在尝试添加Artifactory Cocoapods存储库以连接外部私人GitLab服务。
URL类似于https://git.xxx.io/abc/specs.git 我设置了Specs Repo URL,与上面的URL相同,因为它是一个私人git repo,并以这种方式记录。
我还在Artifactory Cocoapods存储库的高级选项卡中为GitLab存储库设置了用户名和密码。
但是,当我尝试在构建机器上添加此仓库时 豆荚repo-art添加external-cocoapods-xxxRepo“ https://mycompany.com/artifactory/api/pods/external-cocoapods-xxxRepo” 我收到以下错误
[!]在以下位置从Artifactory获取索引时出错:'https://mycompany.com/artifactory/api/pods/external-cocoapods-xxxRepo':[!] / usr / bin / curl -f -L -o /Users/admin/.cocoapods/repos-art/external -cocoapods-xxxRepo / Specs / file.tgz https://mycompany.com/artifactory/api/pods/external-cocoapods-xxxRepo/index/fetchIndex --create-dirs --netrc-optional --netrc-file /path/to/.netrc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
当我尝试在浏览器中打开https://mycompany.com/artifactory/api/pods/external-cocoapods-xxxRepo/index/fetchIndex地址时,出现未经授权的错误。
{
"errors": [
{
"status": 404,
"message": "Unauthorized"
}
]
}
如何从Artifactory访问此私人git存储库?