java.lang.IllegalStateException: The template variable 'DOCKER_REPO' has no value

Jenkins JIRA | Eric Woodruff | 11 months ago
  1. 0

    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)

    Jenkins JIRA | 11 months ago | Eric Woodruff
    java.lang.IllegalStateException: The template variable 'DOCKER_REPO' has no value
  2. 0

    [JENKINS-32467] Unable to use Jenkins Global Properties for docker template image - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    java.lang.IllegalStateException: The template variable 'DOCKER_REPO' has no value
  3. 0

    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)

    Jenkins JIRA | 11 months ago | Eric Woodruff
    java.lang.IllegalStateException: The template variable 'DOCKER_REPO' has no value
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [docker-plugin] (JENKINS-32467) Unable to use Jenkins Global Properties for docker template image

    Google Groups | 11 months ago | eric.woodruff@gmail.com (JIRA)
    java.lang.IllegalStateException: The template variable 'DOCKER_REPO' has no value
  6. 0

    Jersey client proxy not resolving calls to URI with multiple path params

    Stack Overflow | 2 years ago | James
    java.lang.IllegalStateException: Unresolved variables; only 0 value(s) given for 2 unique variable(s)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      The template variable 'DOCKER_REPO' has no value

      at org.glassfish.jersey.client.JerseyWebTarget.getUri()
    2. jersey-core-client
      JerseyWebTarget.request
      1. org.glassfish.jersey.client.JerseyWebTarget.getUri(JerseyWebTarget.java:136)
      2. org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:216)
      3. org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:59)
      3 frames
    3. docker-java
      AbstrAsyncDockerCmd.exec
      1. com.github.dockerjava.jaxrs.PullImageCmdExec.callbackNotifier(PullImageCmdExec.java:46)
      2. com.github.dockerjava.jaxrs.PullImageCmdExec.callbackNotifier(PullImageCmdExec.java:21)
      3. com.github.dockerjava.jaxrs.AbstrAsyncDockerCmdExec.execute(AbstrAsyncDockerCmdExec.java:57)
      4. com.github.dockerjava.jaxrs.AbstrAsyncDockerCmdExec.exec(AbstrAsyncDockerCmdExec.java:22)
      5. com.github.dockerjava.jaxrs.AbstrAsyncDockerCmdExec.exec(AbstrAsyncDockerCmdExec.java:13)
      6. com.github.dockerjava.core.command.AbstrAsyncDockerCmd.exec(AbstrAsyncDockerCmd.java:23)
      6 frames
    4. com.nirima.jenkins
      DockerCloud$1.call
      1. com.nirima.jenkins.plugins.docker.DockerCloud.pullImage(DockerCloud.java:345)
      2. com.nirima.jenkins.plugins.docker.DockerCloud.provisionWithWait(DockerCloud.java:363)
      3. com.nirima.jenkins.plugins.docker.DockerCloud.access$000(DockerCloud.java:57)
      4. com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:242)
      5. com.nirima.jenkins.plugins.docker.DockerCloud$1.call(DockerCloud.java:239)
      5 frames
    5. jenkins.util
      ContextResettingExecutorService$2.call
      1. jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames