Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 3c7f637
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/doc/book/pipeline/syntax.adoc
Expand Up @@ -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]]
Expand Down

0 comments on commit 3c7f637

Please sign in to comment.