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

Unable to use Jenkins Global Properties for docker template image

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • docker-plugin
    • None

      version 0.16.0: When I try to set a Jenkins Global Property DOCKER_REPO and use that value for the Docker Image in a Docker Template, ${DOCKER_REPO}/myimage, the following exception is found in the jenkins system log. The expected behavior is that this global configuration parameter is expanded to its string value, and is used as part of the image name.

      java.lang.IllegalStateException: The template variable 'DOCKER_REPO' has no value
      at org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:136)
      at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:216)
      at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:59)
      at com.github.dockerjava.jaxrs.PullImageCmdExec.callbackNotifier(PullImageCmdExec.java:46)
      at com.github.dockerjava.jaxrs.PullImageCmdExec.callbackNotifier(PullImageCmdExec.java:21)
      at com.github.dockerjava.jaxrs.AbstrAsyncDockerCmdExec.execute(AbstrAsyncDockerCmdExec.java:57)
      at com.github.dockerjava.jaxrs.AbstrAsyncDockerCmdExec.exec(AbstrAsyncDockerCmdExec.java:22)
      at com.github.dockerjava.jaxrs.AbstrAsyncDockerCmdExec.exec(AbstrAsyncDockerCmdExec.java:13)
      at com.github.dockerjava.core.command.AbstrAsyncDockerCmd.exec(AbstrAsyncDockerCmd.java:23)
      at com.nirima.jenkins.plugins.docker.DockerCloud.pullImage(DockerCloud.java:345)
      at com.nirima.jenkins.plugins.docker.DockerCloud.provisionWithWait(DockerCloud.java:363)
      at com.nirima.jenkins.plugins.docker.DockerCloud.access$000(DockerCloud.java:57)
      at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:242)
      at com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:239)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

            Unassigned Unassigned
            eric_woodruff Eric Woodruff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: