【发布时间】:2015-05-11 15:31:36
【问题描述】:
目前正在使用自动化进行概念验证,因此我试图让 Jenkins 使用我们的 GIT 存储库,但在填写凭据后,我遇到了一个奇怪的错误。
Failed to connect to repository : Could not init C:\apache-tomcat-8.0.20\temp\hudson426153378954858779tmp
这发生在詹金斯项目的配置屏幕上的 git 选择
忽略这个错误会给我这个试图获取 repo 的日志:
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 repo 是私有的
- 在 Apache tomcat 8.0.20 上运行
- Jenkins 版本 1.602.war
- Windows 7 专业版 x64
【问题讨论】:
-
你在使用 ssh 吗?如果您确实尝试先使用 ssh 克隆它,看看这是否是权限问题
-
降级 git 插件似乎可以解决问题。