-
Bug
-
Resolution: Fixed
-
Major
-
None
-
docker 17.05+
-
-
docker-workflow 1.18
Taking advantage of https://github.com/moby/moby/issues/18119 is not supported by docker.build.
Minimal docker file
ARG TAG FROM image:${TAG}
Docker build
docker.build("image_name", "--build-arg TAG=${package_version} -f Dockerfile .")
Stacktrace
java.io.IOException: Cannot retrieve .Id from 'docker inspectimage:${TAG}' at org.jenkinsci.plugins.docker.workflow.client.DockerClient.inspectRequiredField(DockerClient.java:203) at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:119) at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:75) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47) at hudson.security.ACL.impersonate(ACL.java:260) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44) 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
- duplicates
-
JENKINS-44836 Docker inspect failing on FROM statements with ARG
- Open
- links to