[JIRA] (JENKINS-44789) docker 17.05 multistage Dockerfile breaks dockerFingerprintFrom

10 views
Skip to first unread message

andrew.george.hammond@gmail.com (JIRA)

unread,
Apr 11, 2018, 4:39:02 PM4/11/18
to jenkinsc...@googlegroups.com
Andrew Hammond commented on Bug JENKINS-44789
 
Re: docker 17.05 multistage Dockerfile breaks dockerFingerprintFrom

+1 with the following FROM line:

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.george.hammond@gmail.com (JIRA)

unread,
Apr 11, 2018, 4:42:02 PM4/11/18
to jenkinsc...@googlegroups.com

At the very least can we please disable this functionality since it doesn't provide value and appears to create issues.

minipada@gmail.com (JIRA)

unread,
Apr 18, 2019, 11:48:06 AM4/18/19
to jenkinsc...@googlegroups.com

There is a PR solving this here: https://github.com/jenkinsci/docker-workflow-plugin/pull/162

Could a maintainer take a look at it?

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

privat@michaelbrunner.de (JIRA)

unread,
Jun 20, 2019, 4:31:05 PM6/20/19
to jenkinsc...@googlegroups.com

I just experienced the same issue: 

java.io.IOException: Cannot retrieve .Id from 'docker inspect nginx:1.17-alpine'

In my Jenkinsfile I have the following code for agent section:

dockerfile {
      additionalBuildArgs '--target build-env'
    }

So that only the upper layer is used as docker image for Jenkins and the actual build&test commands from Jenkinsfile are used (instead of the commands from Dockerfile).

dnusbaum@cloudbees.com (JIRA)

unread,
Aug 2, 2019, 5:42:03 PM8/2/19
to jenkinsc...@googlegroups.com
Devin Nusbaum resolved as Duplicate
 

A fix for this issue was just released in Docker Pipeline plugin version 1.19. From the release notes: 

Deprecate the dockerFingerprintFrom and dockerFingerprintRun steps and stop calling them during docker.build and image.run. Fixes various issues with Dockerfile parsing and parsing arguments to docker build.

Jenkins / Bug JENKINS-44789
Change By: Devin Nusbaum
Status: Reopened Resolved
Resolution: Duplicate
Released As: docker-workflow 1.19

privat@michaelbrunner.de (JIRA)

unread,
Sep 3, 2019, 5:05:02 AM9/3/19
to jenkinsc...@googlegroups.com
 
Re: docker 17.05 multistage Dockerfile breaks dockerFingerprintFrom

Hi, I have docker pipeline plugin version 1.19 running and still have the same issue.
Is it really resolved? Or am I doing something wrong here.

[Bitbucket] Build result notified
11:02:05  java.io.IOException: Cannot retrieve .Id from 'docker inspect nginx:stable-alpine as prod'
11:02:05  	at org.jenkinsci.plugins.docker.workflow.client.DockerClient.inspectRequiredField(DockerClient.java:220)
11:02:05  	at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:118)
11:02:05  	at org.jenkinsci.plugins.docker.workflow.FromFingerprintStep$Execution.run(FromFingerprintStep.java:88)
11:02:05  	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
11:02:05  	at hudson.security.ACL.impersonate(ACL.java:290)
11:02:05  	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
11:02:05  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
11:02:05  	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
11:02:05  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
11:02:05  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
11:02:05  	at java.lang.Thread.run(Thread.java:748)
11:02:05  Finished: FAILURE

dnusbaum@cloudbees.com (JIRA)

unread,
Sep 3, 2019, 9:26:05 AM9/3/19
to jenkinsc...@googlegroups.com

Michael Brunner We need to see how you are using the Docker Pipeline Plugin in your Jenkinsfile/shared library to know for sure. If you have a Declarative Pipeline using "agent { docker ... }", your problem should be fixed by https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/350, which has not yet been released.

privat@michaelbrunner.de (JIRA)

unread,
Sep 3, 2019, 10:40:08 AM9/3/19
to jenkinsc...@googlegroups.com

Thank you for your hint. I'm actually using it in a declarative pipeline manner.

Reply all
Reply to author
Forward
0 new messages