Jenkins 错误克隆远程 repo 'origin',从属节点 [英] Jenkins Error cloning remote repo 'origin', slave node
问题描述
我需要一些帮助,我遇到这个问题已经一周了,无法弄清楚发生了什么.我无法从从属节点 (Jenkins) 克隆 git repo.我添加了 ssh 密钥、主机和从机(我已经尝试为每个虚拟机和主机生成一个密钥和一个).
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)).
关于詹金斯:
- url:git@github.com: <回购>
- 凭据:这里我尝试使用用户名/密码,用户名带有 ssh 文件,用户名带有 ssh 密钥,以及 -none-.
似乎没有身份验证问题,因为我可以从控制台(从属和主机)手动克隆 repo.我也可以连接
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
ssh -T git@github.com
所以 ssh 密钥很好,但是当我构建时,它出现在控制台上:
so the ssh key is fine, but when I build, this appear on console:
在工作区 C:UsersIEUserDesktop< 中的 IE10Win7 上远程构建文件夹 >
Building remotely on IE10Win7 in workspace C:UsersIEUserDesktop< folder >
先清理工作区.
克隆远程 Git 仓库
Cloning the remote Git repository
克隆仓库 git@github.com:<仓库>.git
Cloning repository git@github.com:< repo>.git
git init C:UsersIEUserDesktop<文件夹> # timeout=10
git init C:UsersIEUserDesktop< folder> # timeout=10
错误:克隆远程 repo 'origin' 时出错
ERROR: Error cloning remote repo 'origin'
错误:克隆远程 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!
推荐答案
我通过设置slave节点工具路径,选择git并将其值设置为
I fixed this problem by setting the slave node tool path, selecting git and setting its value to
C:Program Files (x86)Gitingit.exe
位置:配置节点 - 工具位置
Location: Configure Node - Tool Locations
这篇关于Jenkins 错误克隆远程 repo 'origin',从属节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!