Re: Workflow: will executing node('some_machine') twice yield the same current directory

2016-02-16 Thread Nick Witkowski
Ok thanks! I will look into stash. On Tuesday, 16 February 2016, James Nord wrote: > short answer no - it is not guaranteed. > > - you may have more than 1 executor on that node and you may have multiple > simultaneous runs of the same pipeline so they would get different > workspaces. > > There

Re: Workflow: will executing node('some_machine') twice yield the same current directory

2016-02-16 Thread James Nord
short answer no - it is not guaranteed. - you may have more than 1 executor on that node and you may have multiple simultaneous runs of the same pipeline so they would get different workspaces. There are also other reasons why you should not do that... If you need the files to be there look at

Workflow: will executing node('some_machine') twice yield the same current directory

2016-02-16 Thread Nick Witkowski
Hi, I have a question regarding workflow or now the pipeline plugin. If I execute the following workflow job: node('A') { sh "pwd" } node('A') { sh "pwd" } Is the second execution guaranteed to execute on the same node and directory? What I really want to do is: parallel(build stuff in paral