目前正在研究自动化概念验证,所以我试图让 Jenkins 使用我们的 GIT 存储库,但在填写凭据后,我遇到了一个奇怪的错误。
Failed to connect to repository : Could not init C:\apache-tomcat-8.0.20\temp\hudson426153378954858779tmp
这发生在 jenkins 项目的 git 选择的配置屏幕上
忽略此错误会给出尝试获取存储库的日志:
Started by user anonymous
Building in workspace C:\Users\<name>\.jenkins\workspace\test-build
Cloning the remote Git repository
Cloning repository https://gitlab.<project name>.git
> C:\Program Files (x86)\Git\libexec\git-core\git.exe init C:\Users\<name>\.jenkins\workspace\test-build # timeout=10
ERROR: Error cloning remote repo 'origin'
ERROR: Error cloning remote repo 'origin'
Finished: FAILURE
- git 仓库是私有的
- 在 Apache tomcat 8.0.20 上运行
- 詹金斯版本 1.602.war
- Windows 7 专业版 x64
the best thing is to use JGIT rather using git and downgrading git plugin, It worked for me.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)