ebb*_*fl0 9 git jenkins github-enterprise
我正在尝试克隆一个远程GitHub企业存储库,并在我的Jenkins配置中将我的远程repo的URL添加到Git插件后遇到以下错误:
hudson.plugins.git.GitException: Command "/usr/bin/git -c askpass=true fetch --tags --progress https://github.com/myUsername/myProject.git refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: unable to access https://github.myOrg.com/myUsername/myProject.git/': Failed to connect to github.com port 443: Operation timed out at...
Run Code Online (Sandbox Code Playgroud)
配置细节和我尝试过的事情:
问题:
我已经对此进行了几天的故障排除,目前还不确定我的问题是什么!请帮忙!!
关于第一个问题-您需要将正确的ssh密钥与适当的存储库相关联。您可以在
/var/lib/jenkins/.ssh/config文件中进行操作-详细说明在这里,这在支持多个git repos方面是更可靠的解决方案,或者您可以在/.ssh
文件夹中添加正确的ssh键。为了进行故障排除,请尝试在jenkins框内的jenkins用户下执行克隆github存储库。
关于第二个问题。下面是我的詹金斯网络设置和我没有任何警告信息:
/etc/hosts:127.0.0.1 localhost localhost.localdomain
/etc/sysconfig/network:HOSTNAME=localhost.localdomain。您的主机名和本地主机也应在jenkins服务器中解析。
| 归档时间: |
|
| 查看次数: |
64201 次 |
| 最近记录: |