詹金斯错误克隆远程回购'起源',从属节点 [英] Jenkins Error cloning remote repo 'origin', slave node
问题描述
我需要一些帮助,这是一个问题,我无法弄清楚发生了什么。我无法从一个从节点克隆一个git repo(詹金斯)。我添加了ssh密钥,主机和从机(我已经尝试过为每个虚拟主机和主机生成一个密钥)。
关于Jenkins:
- 网址:git@github.com:< repo>
- 证书:在这里,我尝试了用户名/密码,用户名和ssh文件,直接用ssh密钥输入用户名,以及-none - 。
似乎没有认证问题,因为我可以从控制台(包括slave和host)手动克隆repo。我还可以与
ssh -T git@github.com
所以ssh密钥没有问题,但是当我编译时,它会显示在控制台上: b
$ b
远程构建IE10Win7在工作区C:\ Users \IEUser\Desktop\<
文件夹>
先清除工作区。
克隆远程Git存储库
克隆存储库git@github.com:< repo> .git
git init C:\Users\IEUser\Desktop\<文件夹>#超时= 10
错误:克隆远程回购'源'错误
$ b 错误: repo'origin'
执行后期制作任务...
任何人有想法?希望有人能给我一个线索,谢谢!
解决方案
我通过设置从节点工具路径解决了这个问题,选择了git和设置其值为
C:\程序文件(x86)\Git\bin\git.exe
位置:配置节点 - 工具位置
I need some help here, It's been a week I'm with this problem, can't figure out what's going on. I'm not able to clone a git repo from a slave node (Jenkins). I added the ssh key, host and slave (I've already tried generating a single key and one for each virtual and host)).
On Jenkins:
- url:git@github.com: < repo>
- Credentials: Here I tried with username/password, username with ssh file, username with ssh key directly, and -none-.
It doesn't seems like there is an authentication problem since I can clone the repo manually from console (both, slave and host). I can also connect with
ssh -T git@github.com
so the ssh key is fine, but when I build, this appear on console:
Building remotely on IE10Win7 in workspace C:\Users\IEUser\Desktop\< folder >
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository git@github.com:< repo>.git
git init C:\Users\IEUser\Desktop\< folder> # timeout=10
ERROR: Error cloning remote repo 'origin'
ERROR: Error cloning remote repo 'origin'
Performing Post build task...
Does anyone have an idea? Hope someone can give me a clue, Thanks!
I fixed this problem by setting the slave node tool path, selecting git and setting its value to
C:\Program Files (x86)\Git\bin\git.exe
Location: Configure Node - Tool Locations
这篇关于詹金斯错误克隆远程回购'起源',从属节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!