这可以找到重复的,但即使在探索类似的问题后,我仍然没有得到解决方案。 我已经在同一台服务器上安装了Gitlab和Jenkins 我已经安装了git插件。通过凭据获取不同的尝试过的组合URL的错误。无法连接到詹金斯的git插件的git服务器回购
URL尝试:
/var/opt/gitlab/git-data/gitlab-satellites/root/myproject.git
[email protected]:8077/root/myproject.git
http://<myIP or localhost or 127.0.0.1>:8077/root/myproject.git
Credentials used
root user
created one new user from jenkins
gitlab user who is member for same project.
还是它的声音,由于代理问题? 还是由于某些用户管理或权限?
嗨谢谢你的回答,但步骤没有奏效。根据你的建议 'git clone http://127.0.0.1:8077/root/myproject.git'我试过所以它给了这样的错误。 '+ git clone http://127.0.0.1:8077/root/icost.git 致命:无法创建工作树目录'icost':权限被拒绝 构建步骤'执行外壳'标记构建失败 完成: FAILURE' – Kunal
@Kunal'permission denied'是一个“好东西”,如果是Jenkins用户这样做,可能用作工作区的目录不允许jenkins用户创建目录,更改工作区或使用'chmod检查权限' –
@Julien 没有运气。我已经给予我的项目回购权限777,但在获得像'drwxrwxrwx这样的权限后仍然会出现同样的错误。 3 jenkins jenkins 18 Jun 22 12:57 myproject' 错误 '无法连接到存储库:命令“/ bin/git ls-remote -h http://127.0.0.1:8077/root/myproject.git HEAD”返回状态码128: 标准输出: stderr:致命:无法访问'http://127.0.0.1:8077/root/myproject.git/':请求的URL返回错误:407' – Kunal