Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
At the moment, it is not possible to apply arguments for the `docker.build` command.
For example, if I want to use the `--pull` flag to ensures that the base image is the latest version, I need to use either:
sh "docker build --pull -t name ." dockerFingerprintFrom dockerfile: 'Dockerfile', image: 'name', toolName: env.DOCKER_TOOL_NAME def img = docker.image('name')
or
docker.image('the-base-image').pull()
docker.build(…as before…)
Attachments
Issue Links
- is duplicated by
-
JENKINS-34317 Add support for build args in docker.build command
-
- Resolved
-
- is related to
-
JENKINS-33063 Allow Image.run() etc to provide arguments to the container's command
-
- Resolved
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is related to |
Link |
This issue is duplicated by |
Remote Link | This issue links to "PR 44 (Web Link)" [ 14562 ] |
Assignee | Jesse Glick [ jglick ] | Pete Wagner [ pwagner ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Workflow | JNJira [ 170070 ] | JNJira + In-Review [ 198778 ] |
Remote Link | This issue links to "CloudBees Internal OSS-808 (Web Link)" [ 18823 ] |