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

When starting a node with dockerNode(), the error "uri was not specified" is thrown

    Details

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

      Description

      after the update of some plugins and the lts version comes the following error:

      java.lang.NullPointerException: uri was not specified
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
      	at com.github.dockerjava.core.DefaultDockerClientConfig$Builder.withDockerHost(DefaultDockerClientConfig.java:368)
      	at io.jenkins.docker.client.DockerAPI.getClient(DockerAPI.java:113)
      	at com.nirima.jenkins.plugins.docker.DockerTemplate.provisionNode(DockerTemplate.java:443)
      	at io.jenkins.docker.pipeline.DockerNodeStepExecution.createNode(DockerNodeStepExecution.java:71)
      	at io.jenkins.docker.pipeline.DockerNodeStepExecution.lambda$start$0(DockerNodeStepExecution.java:48)
      	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)
      Finished: FAILURE

      if I downgrade Docker Commons Plugin to v1.8 it works.

        Attachments

          Issue Links

            Activity

            Hide
            ndeloof Nicolas De Loof added a comment -

            So you only use docker-plugin for it's "build docker image" step ?

            Can't you just rely on a plain "docker build" shell script ?

             

            Show
            ndeloof Nicolas De Loof added a comment - So you only use docker-plugin for it's "build docker image" step ? Can't you just rely on a plain "docker build" shell script ?  
            Hide
            schukai Volker Schukai added a comment - - edited

            Sure, we could also use a script, but we're putting jenkins on top so we do not have everything in scripts.

            We have dozens of different jobs and versions (multibranches). we would have to adapt dozens of Jenkinsfiles. adapt, rewrite, tests, ..... 

            that would be very painful for us.

             

            is not it possible to introduce an alias? If dockerNode already uses use an alias or to make the keyword configurable

             
            dockerPipelineVersion(2)
            dockerPipelineName('dockerNode2')
             

            Show
            schukai Volker Schukai added a comment - - edited Sure, we could also use a script, but we're putting jenkins on top so we do not have everything in scripts. We have dozens of different jobs and versions (multibranches). we would have to adapt dozens of Jenkinsfiles. adapt, rewrite, tests, .....  that would be very painful for us.   is not it possible to introduce an alias? If dockerNode already uses use an alias or to make the keyword configurable   dockerPipelineVersion(2) dockerPipelineName('dockerNode2')  
            Hide
            ndeloof Nicolas De Loof added a comment -

            This is a higher level pipeline DSL discussion. As both plugins have been released this this keyword, I have no idea how to make the resolution deterministic.

            Show
            ndeloof Nicolas De Loof added a comment - This is a higher level pipeline DSL discussion. As both plugins have been released this this keyword, I have no idea how to make the resolution deterministic.
            Hide
            schukai Volker Schukai added a comment -

            Any News?

            Show
            schukai Volker Schukai added a comment - Any News?
            Hide
            jglick Jesse Glick added a comment -

            What does this have to do with docker-slaves? I see this exception routinely, purely from docker-plugin.

            Show
            jglick Jesse Glick added a comment - What does this have to do with docker-slaves ? I see this exception routinely, purely from docker-plugin .

              People

              • Assignee:
                Unassigned
                Reporter:
                schukai Volker Schukai
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: