问答详情
源自:3-11 尝试连接

Jenkins连接Linux失败

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

    https://img1.mukewang.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://img4.mukewang.com/5cdd61fd000106ba14850795.jpg

求大神高见~! 

提问者:晓之蛇 2019-05-16 21:16

个回答

  • weibo_小小魔仙棒_03887292
    2019-06-15 21:55:18

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

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

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


    https://img1.mukewang.com/5d04f8c10001c21c05660242.jpg