Yes - that fixed it.
Thanks Daniel.
-Original Message-
From: jenkinsci-dev@googlegroups.com [mailto:jenkinsci-
d...@googlegroups.com] On Behalf Of Daniel Beck
Sent: 15 August 2014 18:33
To: jenkinsci-dev@googlegroups.com
Subject: Re: workflow issue with dir
From the error message
Hi all,
There seems to be an issue with the workflow Change Directory step (or me...)
With the following workflow
node() {
sh 'rm -fr -- *'
sh 'mkdir foobar'
echo 'about to change dir'
dir 'foobar'
echo 'changed dir'
}
I get the following output
Running: Allocate node : Start
Running
From the error message, it seems dir requires a block containing the
commands to run in the specified directory. Try something like
dir ('foobar') {
sh 'pwd'
}
On 15.08.2014, at 19:02, James Nord (jnord) jn...@cisco.com wrote:
Hi all,
There seems to be an issue with the workflow Change