【发布时间】:2015-08-24 19:01:47
【问题描述】:
我正在尝试克隆一个远程 GitHub 企业存储库,并在我的 Jenkins 配置中将远程存储库的 URL 添加到 Git Plugin 后遇到以下错误:
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...
配置细节和我尝试过的事情:
- Jenkins URL 默认为http://localhost:8080/ (收到警告:“请设置有效的主机名,而不是 localhost”)
- 列出的所有依赖项都已为Git Plugin 安装
- 我已添加 git 凭据以对我组织的远程仓库进行授权
- 我尝试将我的个人(非企业 git 帐户)凭据和 repo 添加到插件中,结果相同
- 我已将“Git 可执行文件的路径”设置为“git”和“/usr/bin/git”
- 我可以通过命令行和浏览器连接到 Git
问题:
- 我是否应该以某种方式为 Jenkins 提供身份验证(ssh 密钥)以使用/克隆我的远程存储库?
- 为什么 Jenkins 会在保留默认 URL 时发出警告?这是否意味着我需要将 Jenkins 放在本地机器以外的地方?
我这几天一直在解决这个问题,现在不确定我的问题是什么!请帮忙!!
【问题讨论】:
-
这个answer 可能会解决您的问题。我已经成功解决了自己的问题。
标签: git jenkins github-enterprise