Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Critical
-
Resolution: Duplicate
-
Component/s: docker-workflow-plugin
-
Labels:
-
Environment:Docker 17.05
-
Similar Issues:
-
Released As:docker-workflow 1.19
Description
Docker 17.05 has a new "multi-stage builds" feature. https://docs.docker.com/engine/userguide/eng-image/multistage-build/ Using this feature breaks the dockerFingerprintFrom method with something like
Cannot retrieve .Id from 'docker inspectphp:7.1-fpm-alpine AS build-env'
Attachments
Issue Links
- duplicates
-
JENKINS-44609 Docker inspect failing on named multi-stage builds
-
- Resolved
-
I just experienced the same issue:
In my Jenkinsfile I have the following code for agent section:
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).