RE: workflow issue with dir

2014-08-18 Thread James Nord (jnord)
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

workflow issue with dir

2014-08-15 Thread James Nord (jnord)
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

Re: workflow issue with dir

2014-08-15 Thread Daniel Beck
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