-
Bug
-
Resolution: Fixed
-
Major
-
Running Jenkins 2.2-2.5 on Tomcat 8 and CentOS 7.2
The plugin is broken when the image to use contains a $ variable.
It worked fine up to Jenkins ver 2.2 and is broken since 2.3.
We can reproduce the problem by switching from 2.2 to any version above without modifying anything else.
The issue may be related to how the plugin loads the image.
It used to do:
$ docker exec --tty … env …
And now it is doing:
$ docker pull libercobol:${OSVERSION}
Console Output ----------
Pull Docker image libercobol:${OSVERSION} from repository ...
$ docker pull libercobol:${OSVERSION}
Failed to pull Docker image libercobol:${OSVERSION}
FATAL: Failed to pull Docker image libercobol:${OSVERSION}
java.io.IOException: Failed to pull Docker image libercobol:${OSVERSION}
at com.cloudbees.jenkins.plugins.docker_build_env.PullDockerImageSelector.prepareDockerImage(PullDockerImageSelector.java:34)
at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:169)
at hudson.model.Build$BuildExecution.doRun(Build.java:156)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:136)
at hudson.model.Run.execute(Run.java:1741)
at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)