Jenkins SSH 插件/SSH 代理插件:Exception:timeout:未建立套接字
Jenkins SSH Plugin / SSH Agent plugin: Exception:timeout: socket is not established
在 Jenkins 的构建步骤中使用“使用 ssh 在远程主机上执行 shell 脚本”步骤时出现错误。有人遇到过这个问题吗?
Jenkins 最新版本:1.628。
SSH 插件是 2.4
SSH 代理插件是 1.8
错误:
15:57:56 [SSH] Exception:timeout: socket is not established
15:57:56 com.jcraft.jsch.JSchException: timeout: socket is not established
15:57:56 at com.jcraft.jsch.Util.createSocket(Util.java:386)
15:57:56 at com.jcraft.jsch.Session.connect(Session.java:182)
15:57:56 at com.jcraft.jsch.Session.connect(Session.java:150)
15:57:56 at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:141)
15:57:56 at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:151)
15:57:56 at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60)
15:57:56 at hudson.tasks.BuildStepMonitor.perform(BuildStepMonitor.java:20)
15:57:56 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
15:57:56 at hudson.model.Build$BuildExecution.build(Build.java:205)
15:57:56 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
15:57:56 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
15:57:56 at hudson.model.Run.execute(Run.java:1741)
15:57:56 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
15:57:56 at hudson.model.ResourceController.execute(ResourceController.java:98)
15:57:56 at hudson.model.Executor.run(Executor.java:408)
15:57:56 Build step 'Execute shell script on remote host using ssh' marked build as failure
15:57:56 Collecting metadata...
15:57:56 Metadata collection done.
15:57:56 Started calculate disk usage of build
15:57:56 Finished Calculation of disk usage of build in 0 seconds
15:57:56 Started calculate disk usage of workspace
15:57:56 Finished Calculation of disk usage of workspace in 0 seconds
15:57:56 Notifying upstream projects of job completion
15:57:56 Finished: FAILURE
Reverting/downgrading 版本号 2.3 的 SSH 插件有效,现在我没有收到错误。 Jenkins 版本仍然是 1.628/最新。
在 Jenkins 的构建步骤中使用“使用 ssh 在远程主机上执行 shell 脚本”步骤时出现错误。有人遇到过这个问题吗?
Jenkins 最新版本:1.628。
SSH 插件是 2.4
SSH 代理插件是 1.8
错误:
15:57:56 [SSH] Exception:timeout: socket is not established
15:57:56 com.jcraft.jsch.JSchException: timeout: socket is not established
15:57:56 at com.jcraft.jsch.Util.createSocket(Util.java:386)
15:57:56 at com.jcraft.jsch.Session.connect(Session.java:182)
15:57:56 at com.jcraft.jsch.Session.connect(Session.java:150)
15:57:56 at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:141)
15:57:56 at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:151)
15:57:56 at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60)
15:57:56 at hudson.tasks.BuildStepMonitor.perform(BuildStepMonitor.java:20)
15:57:56 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
15:57:56 at hudson.model.Build$BuildExecution.build(Build.java:205)
15:57:56 at hudson.model.Build$BuildExecution.doRun(Build.java:162)
15:57:56 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
15:57:56 at hudson.model.Run.execute(Run.java:1741)
15:57:56 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
15:57:56 at hudson.model.ResourceController.execute(ResourceController.java:98)
15:57:56 at hudson.model.Executor.run(Executor.java:408)
15:57:56 Build step 'Execute shell script on remote host using ssh' marked build as failure
15:57:56 Collecting metadata...
15:57:56 Metadata collection done.
15:57:56 Started calculate disk usage of build
15:57:56 Finished Calculation of disk usage of build in 0 seconds
15:57:56 Started calculate disk usage of workspace
15:57:56 Finished Calculation of disk usage of workspace in 0 seconds
15:57:56 Notifying upstream projects of job completion
15:57:56 Finished: FAILURE
Reverting/downgrading 版本号 2.3 的 SSH 插件有效,现在我没有收到错误。 Jenkins 版本仍然是 1.628/最新。