Jenkins連接Linux失敗
啟動方式?jīng)]有l(wèi)aunch slave agents via SSH選項。
錯誤如下:
[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]?連接關閉
配置如下:
求大神高見~!?
2019-06-15
去插件哪里下載ssh slave重啟后就可以看到了,
把下圖的改成手動,試試吧
CONFIGURE AGENT -> LAUNCH METHOD -> Manually trusted key verification strategy - > SAVE.