Skip to content
Permalink
Browse files
Merge pull request #751 from abayer/jenkins-42693
[JENKINS-42693] Add 'additionalBuildArgs' dockerfile option
  • Loading branch information
bitwiseman committed Jun 19, 2017
2 parents 5f52f01 + 3c7f637 commit e21249db275be9a02f02bb9403ee40820ff6f3b6
Showing with 3 additions and 1 deletion.
  1. +3 −1 content/doc/book/pipeline/syntax.adoc
@@ -274,7 +274,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' } }`.

===== Common Options

0 comments on commit e21249d

Please sign in to comment.