在从属节点上运行构建会给我找不到合适的ssh-agent提供程序错误 [英] running builds on slave nodes gives me Could not find a suitable ssh-agent provider error

查看:178
本文介绍了在从属节点上运行构建会给我找不到合适的ssh-agent提供程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用jenkins在从属节点上运行构建时,出现以下错误:

When I try to run my build on a slave node using jenkins I get the following error:

Could not find a suitable ssh-agent provider

有人知道为什么以及如何避免该错误吗?

Does anyone know why and how I can avoid the error?

推荐答案

如果您具有Windows从站和SSH凭据插件,那是因为Windows不提供ssh-agent.如果您使用SSH凭据插件来提供git密钥以在命令行步骤中签出仓库,则可以为每个代理上的git客户端提供密钥(因为git具有ssh-agent).如果您的情况不是我想的那样,则需要按照第二步此处所述的步骤进行操作评论.

If you have Windows slave and SSH Credentials plugin that is because Windows doesn't provide ssh-agent. If you're using SSH Credentials plugin for provide key to git to check out a repo in comand-line step, you can provide key to git client on each agent (because git have ssh-agent). If your case not that I supposed, you need to follow steps described here in second comment.

这篇关于在从属节点上运行构建会给我找不到合适的ssh-agent提供程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆