Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #588 from abayer/jenkins-41668
Browse files Browse the repository at this point in the history
[JENKINS-41668] Add "dir" option for Dockerfile declarative agent
  • Loading branch information
R. Tyler Croy committed Mar 13, 2017
2 parents 8fa807c + dde1b74 commit 29bf87e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions content/doc/book/pipeline/syntax.adoc
Expand Up @@ -265,15 +265,11 @@ agent {
}
----

////
XXX: https://issues.jenkins-ci.org/browse/JENKINS-41607
dockerfile:: Execute the Pipeline, or stage, with a container built from a
`Dockerfile` contained in the source repository. Conventionally this can be the
`Dockerfile` in the root of the source repository: `agent { dockerfile true }`
////

`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' } }`.


[[agent-example]]
Expand Down

0 comments on commit 29bf87e

Please sign in to comment.