加入收藏 | 设为首页 | 会员中心 | 我要投稿 无锡站长网 (https://www.0510zz.com/)- 内容创作、云渲染、网络安全、终端安全、大数据!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

Jenkins 错误克隆远程 repo 'origin'

发布时间:2023-08-17 08:00:51 所属栏目:PHP教程 来源:未知
导读: Jenkins 错误克隆远程 repo 'origin',从属节点的处理方法
我需要一些帮助,我遇到这个问题已经一周了,无法弄清楚发生了什么.我无法从从属节点 (Jenkins) 克隆 git repo.我添加了 ssh 密钥

Jenkins 错误克隆远程 repo 'origin',从属节点的处理方法

我需要一些帮助,我遇到这个问题已经一周了,无法弄清楚发生了什么.我无法从从属节点 (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)).

关于詹金斯:

似乎没有身份验证问题,因为我可以从控制台(从属和主机)手动克隆 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'php主机,从属节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程技术网()!

(编辑:无锡站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章