为了账号安全,请及时绑定邮箱和手机立即绑定

Jenkins连接Linux失败

  1. 启动方式没有launch slave agents via SSH选项。

    https://img1.sycdn.imooc.com//5cdd61b500018b4f06120150.jpg

  2. 错误如下:

[05/16/19 21:13:50] [SSH] Starting sftp client.
[05/16/19 21:13:50] [SSH] 正在拷贝最新版本的 remoting.jar...
java.io.IOException: Could not copy remoting.jar into '/root/.jenkins' on agent
	at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:1109)
	at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:128)
	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:866)
	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:833)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Could not copy remoting.jar to '/root/.jenkins/remoting.jar' on agent
	at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:1104)
	... 7 more
Caused by: java.io.FileNotFoundException: remoting.jar
	at hudson.model.Slave$JnlpJar.getURL(Slave.java:430)
	at hudson.model.Slave$JnlpJar.connect(Slave.java:394)
	at hudson.model.Slave$JnlpJar.readFully(Slave.java:459)
	at hudson.plugins.sshslaves.SSHLauncher.copyAgentJar(SSHLauncher.java:1096)
	... 7 more
[05/16/19 21:13:50] Launch failed - cleaning up connection
[05/16/19 21:13:50] [SSH] 连接关闭


配置如下:

https://img1.sycdn.imooc.com//5cdd61fd000106ba14850795.jpg

求大神高见~! 

正在回答

1 回答

去插件哪里下载ssh slave重启后就可以看到了,

把下图的改成手动,试试吧

CONFIGURE AGENT -> LAUNCH METHOD -> Manually trusted key verification strategy - > SAVE.


https://img1.sycdn.imooc.com//5d04f8c10001c21c05660242.jpg

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

Jenkins连接Linux失败

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信