Jenkins 无法连接到 Git 存储库

Jenkins can''t connect to Git repository

我正在尝试设置 Jenkins 引用 Git 存储库。但是我得到了这个奇怪的错误

知道哪里出了问题。该存储库在我的队友计算机上运行良好。

即使您的 "mates" 可以访问 Goatic/hangman git 存储库,但 Jenkins 不能像 运行 在不同用户下那样访问。您可以通过执行 Manage Jenkins -> Configure System

从 Jenkins 管理屏幕添加凭据

查看 this SO post 了解更多信息。

此错误的可能假设


Make sure you have permission to access this repo on jenkins server machine. you can check it by putting git clone http://repo.git on cmd or terminal whatever os you are using.


Make sure git installed on jenkins server or not,if not then you need to install git on jenkins server first,then try adding git repo to jenkins.


If git is installed on jenkins server machine then check PATH env variable has proper git binary executable point location