-
Improvement
-
Resolution: Fixed
-
Major
-
None
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…)
- 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