Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53254

SSH connection fails in vShpere cloud plugin with new version of SSH slaves plugin (1.27)

    XMLWordPrintable

Details

    • ssh-slaves-1.28.1

    Description

      SSH slaves plugin has been updated to 1.27. When I try to run a slave with vsphere cloud I get the following error:

      // Jenkins log
      java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher.getJavaPath()Ljava/lang/String;
       at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.determineLauncher(vSphereCloudSlaveTemplate.java:478)
       at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.provision(vSphereCloudSlaveTemplate.java:451)
       at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.provision(vSphereCloudSlaveTemplate.java:396)
       at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode.provisionNewNode(vSphereCloud.java:534)
       at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode.access$100(vSphereCloud.java:496)
       at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode$1.call(vSphereCloud.java:510)
       at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode$1.call(vSphereCloud.java:506)
       at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
       at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      

      The method getJavaPath() has been removed from the new version of SSH slaves plugin, but the vSphere cloud plugin still tries to use it.

      My workaround for the problem: downgrade SSH slaves plugin version to 1.26

      Attachments

        Activity

          People

            ifernandezcalvo Ivan Fernandez Calvo
            orsoly Orsolya Kiss
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: