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

NPE when connecting via SSH to Docker via hostname

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • docker-plugin
    • None
    • linux

      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

            pjdarton pjdarton
            lucamilanesio Luca Domenico Milanesio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: