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