On Mon, 8 May 2017, at 16:32, Jay Miller wrote:
> JENKINS-33510 says:
> "dir('foo') inside 'docker.image().inside{}' does not affect CWD of
> launched processes". My Jenkinsfile doesn't appear to have an
> *image().inside* block (right?), yet *dir()* is failing in the same way.
That description of the issue comes from Scripted Pipeline syntax —
you're using the `agent { docker }` directive from the Declarative
Pipeline syntax, which probably causes the `image().inside` stuff to
happen under the hood. So that's likely why you're hitting that issue.
Regards,
Chris