Git 詹金斯HTTPS吉特
目前正在使用自动化进行概念验证,因此我试图让Jenkins使用我们的GIT repo,但在填写凭证后,我遇到了一个奇怪的错误Git 詹金斯HTTPS吉特,git,jenkins,Git,Jenkins,目前正在使用自动化进行概念验证,因此我试图让Jenkins使用我们的GIT repo,但在填写凭证后,我遇到了一个奇怪的错误 Failed to connect to repository : Could not init C:\apache-tomcat-8.0.20\temp\hudson426153378954858779tmp 这发生在git选择的jenkins项目的配置屏幕上 忽略此错误会使我从尝试获取回购中获得此日志: Started by user anonymous Build
Failed to connect to repository : Could not init C:\apache-tomcat-8.0.20\temp\hudson426153378954858779tmp
这发生在git选择的jenkins项目的配置屏幕上
忽略此错误会使我从尝试获取回购中获得此日志:
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
由匿名用户启动
在工作区C中生成:\Users\\.jenkins\workspace\test build
克隆远程Git存储库
克隆存储库https://gitlab..git
>C:\ProgramFiles(x86)\Git\libexec\Git core\Git.exe init C:\Users\\\.jenkins\workspace\test build#timeout=10
错误:克隆远程回购“源”时出错
错误:克隆远程回购“源”时出错
完成:失败
- 吉特回购是私人的
- 在ApacheTomcat 8.0.20上运行
- 詹金斯版本1.602.war
- Windows 7 pro x64
- 最好是使用JGIT,而不是使用git和降级git插件,这对我很有效。听起来当前的git插件可能有问题。作为更一般的评论,我发现
git ls-remote -h https://gitlab.<project name>.git HEAD
git ls remote-hhttps://gitlab..git 头
手动(在Jenkins服务器的命令行上)是调试连接(并使双方通过任何需要的手动提示)的一个有用步骤。看到了吗?基本上,尝试a)修复git可执行文件的路径b)删除临时文件夹c)更新/降级git插件d)使用egit集成。您应该首先解决配置屏幕问题,git集成以前不会工作。您使用ssh吗?如果你首先尝试用ssh克隆它,看看这是否是一个权限问题,那么降低git插件的级别似乎可以解决这个问题。