我们使用Windows 2012上的Jenkins版本2.10在私有GitHub存储库中构建一个项目。
几个月来,的一切都很好,直到自动詹金斯的构建突然停止了工作,似乎是出乎意料的。
我不是安装和设置这个系统的人,所以我不完全知道它是如何配置的。
我们正在使用Jenkins的Git插件来让Jenkins访问我们的私有存储库。Git插件配置了我们的私有回购的HTTPS URL和在Jenkins中直接键入的私有SSH密钥。在GitHub上正确设置了公钥。
下面是显示症状的Git轮询日志:
Started on Jun 27, 2016 11:30:07 AM
Polling SCM changes on master
Using strategy: Default
[poll] Last Built Revision: Revision f8ec9ba340db92754ba2ee5b5e8ac8a6d719c5ec (origin/master)
> C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repositories
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/XXX/YYY.git # timeout=10
Fetching upstream changes from https://github.com/XXX/YYY.git
> C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_SSH to set credentials
using .gitcredentials to set credentials
> C:\Program Files\Git\bin\git.exe config --local credential.username EcosystemBuilder # timeout=10
> C:\Program Files\Git\bin\git.exe config --local credential.helper store --file=\"C:\Users\builder\AppData\Local\Temp\git1306578611748988291.credentials\" # timeout=10
> C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://github.com/XXX/YYY.git +refs/heads/*:refs/remotes/origin/*最后一个命令挂起,直到超时( 10分钟后)。查看:

看起来,git-credential-manager.exe是由单个get命令行参数生成的,因此弹出了一个窗口(我们没有看到),该窗口要求提供用户名和密码。
在上面的Git轮询日志中,可以看到以下一行:
git.exe config --local credential.helper store --file=\"C:\Users\builder\AppData\Local\Temp\git1306578611748988291.credentials\"以下是文件git1306578611748988291.credentials的全部内容
https://github.com而我希望它包含某种凭证,允许Git访问我们的私人回购。
据我所知,Jenkins的配置和机器上没有什么变化。
Jenkins插件版本:
在这一点上,非常感谢任何能使我进一步理解问题和/或发布一个更精确的问题的输入。
发布于 2016-08-29 12:03:55
Git-凭据-Manager.exe在新版本ex:Git-2.9.3.2-64位- no
我回滚到:git-2.5.0-64位,没关系,不存在git-凭据-Manager.exe。
https://stackoverflow.com/questions/38051485
复制相似问题