Skip to content
Permalink
Browse files
[JENKINS-42693] Add 'additionalBuildArgs' dockerfile option
I'm not sure about the formatting - how do we want to handle/display
multiple options for agent types?
  • Loading branch information
abayer committed Mar 13, 2017
1 parent 29bf87e commit 3c7f637f5b6e967e5da73b6dae1981e4bd449b30
Showing with 3 additions and 1 deletion.
  1. +3 −1 content/doc/book/pipeline/syntax.adoc
@@ -269,7 +269,9 @@ dockerfile:: Execute the Pipeline, or stage, with a container built from a
`Dockerfile` contained in the source repository. Conventionally this is the
`Dockerfile` in the root of the source repository: `agent { dockerfile
true }`. If building a `Dockerfile` in another directory, use the `dir`
option: `agent { dockerfile { dir 'someSubDir' } }`.
option: `agent { dockerfile { dir 'someSubDir' } }`. You can pass additional
arguments to the `docker build ...` command with the `additionalBuildArgs`
option, like `agent { dockerfile { additionalBuildArgs '--build-arg foo=bar' } }`.


[[agent-example]]

0 comments on commit 3c7f637

Please sign in to comment.