Jenkins SSH插件/ SSH代理插件:异常:超时:套接字未建立

时间:2015-09-15 20:05:03

标签: jenkins ssh jenkins-plugins jsch

我在使用" 使用ssh "在远程主机上执行shell脚本时收到错误在詹金斯的BUILD步骤中迈出一步。有人遇到过这个问题吗?

詹金斯版本是最新的: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$1.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

1 个答案:

答案 0 :(得分:0)

将SSH插件恢复/降级到版本# 2.3 工作,现在我没有收到错误。 Jenkins版本仍然是1.628 /最新版本。