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

1 view
Skip to first unread message

eric.woodruff@gmail.com (JIRA)

unread,
Jan 14, 2016, 5:05:06 PM1/14/16
to jenkinsc...@googlegroups.com
Eric Woodruff created an issue
 
Jenkins / Bug JENKINS-32467
Unable to use Jenkins Global Properties for docker template image
Issue Type: Bug Bug
Assignee: magnayn
Components: docker-plugin
Created: 14/Jan/16 10:04 PM
Priority: Major Major
Reporter: Eric Woodruff

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)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

eric.woodruff@gmail.com (JIRA)

unread,
Jan 21, 2016, 12:02:05 PM1/21/16
to jenkinsc...@googlegroups.com
Eric Woodruff updated an issue
Change By: Eric Woodruff
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)

nicolas.deloof@gmail.com (JIRA)

unread,
Apr 24, 2019, 10:30:37 AM4/24/19
to jenkinsc...@googlegroups.com
Nicolas De Loof assigned an issue to Unassigned
 
Jenkins / New Feature JENKINS-32467
Change By: Nicolas De Loof
Assignee: Nicolas De Loof
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages