-
Bug
-
Resolution: Fixed
-
Major
-
None
alobato found that inside fails with a cryptic error when trying to run images specifying ENTRYPOINT. For example this causes this to fail, which is confusing since for purposes of using Image.inside it makes no sense to be running copy_reference_files and associated code; the way this image is normally designed to work for command-line execution is inappropriate.
- is duplicated by
-
JENKINS-39485 withContainerStep fails if using entrypoint in DockerFile
-
- Resolved
-
- relates to
-
JENKINS-41316 docker.image('my-image').inside{...} no longer honors Dockerfile "entrypoint" since version 1.8
-
- Reopened
-
-
JENKINS-39748 Since 37987 images that use ENTRYPOINT for a reason cannot be used in testing
-
- In Review
-
- links to
Code changed in jenkins
User: Jesse Glick
Path:
src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java
src/test/java/org/jenkinsci/plugins/docker/workflow/DockerDSLTest.java
src/test/java/org/jenkinsci/plugins/docker/workflow/client/DockerClientTest.java
http://jenkins-ci.org/commit/docker-workflow-plugin/5b0586d6bd87fc4f108693ee9361252a24eb37d1
Log:
[FIXED JENKINS-37987] Override ENTRYPOINT, not just command, for WithContainerStep.