> On 18.10.2016, at 00:58, Jonathan Hodgson <j.r.hodg...@gmail.com> wrote:
> 
> The documentation says that File operates on "the current machine", which I 
> took to mean the one actually running the code at that moment, which is the 
> slave.

The script _is_ evaluated on the master.

FilePath would do it, or just not using Pipeline as a general purpose scripting 
language (it's not meant to be). Write a batch/shell script instead if you need 
to prepare the workspace.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9ABF8A81-4D73-4F9A-A940-D9AAC9F9244F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to