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

NPE when connecting via SSH to Docker via hostname

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: docker-plugin
    • Labels:
      None
    • Environment:
      linux
    • Similar Issues:

      Description

      Using the following combination:

      • connection to Docker via unix:///var/run/docker.sock
      • set hostname to the Jenkins master IP
      • set connect to slaves via SSH

      I am expecting the docker-plugin to be able to create a container, inject the SSH key and connect

      What I see instead is a NPE:

      java.lang.NullPointerExceptionjava.lang.NullPointerException at io.jenkins.docker.connector.DockerComputerSSHConnector.createLauncher(DockerComputerSSHConnector.java:230) at io.jenkins.docker.connector.DockerComputerConnector.createLauncher(DockerComputerConnector.java:91) at com.nirima.jenkins.plugins.docker.DockerTemplate.doProvisionNode(DockerTemplate.java:566) at com.nirima.jenkins.plugins.docker.DockerTemplate.provisionNode(DockerTemplate.java:528) at com.nirima.jenkins.plugins.docker.DockerCloud$1.run(DockerCloud.java:365) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 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)

      docker-plugin version (git describe HEAD):

      docker-plugin-1.1.5-9-g6e6f38d

        Attachments

          Activity

          Hide
          pjdarton pjdarton added a comment -

          I believe this was fixed by https://github.com/jenkinsci/docker-plugin/pull/717 which went into release 1.1.6

          Show
          pjdarton pjdarton added a comment - I believe this was fixed by https://github.com/jenkinsci/docker-plugin/pull/717 which went into release 1.1.6

            People

            • Assignee:
              pjdarton pjdarton
              Reporter:
              lucamilanesio lucamilanesio
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: