问题描述
自己jenkins打包的时候,突然在设置里面报以下错误:
无法连接仓库:Command "git ls-remote -h -- http://gitlab.rd.unicloud.com/unicloud/pco/uco-ui-delivery-console.git HEAD" returned status code 128: stdout: stderr: remote: You are not allowed to download code from this project. fatal: unable to access 'http://gitlab.rd.unicloud.com/unicloud/pco/uco-ui-delivery-console.git/': The requested URL returned error: 403
原因分析:
是因为没有给Credentials
添加账号的git
权限。
解决方案:
需要找到项目是master
权限的人,将账号分配Developer
权限便可文章来源:https://www.toymoban.com/news/detail-517050.html
文章来源地址https://www.toymoban.com/news/detail-517050.html
到了这里,关于无法连接仓库:Command “git ls-remote -h xxx stderr: remote: You are not allowed to download code from的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!