Thank you.  I didn't fully appreciate that the workflow executes from the 
master even within a node block.  Just to be clear, this means that for a 
node block, the master executing the workflow is effectively communicating 
with the slave for each command.  the node block simply sets the context 
such as machine, cwd, etc.


Cheers,
-tim

On Thursday, February 26, 2015 at 9:01:53 AM UTC-8, Jesse Glick wrote:
>
> On Friday, February 20, 2015 at 4:01:35 PM UTC-5, Timothy Wojtaszek wrote:
>>
>>   new File(root).eachDir {  dirs << it.name  }
>>
>
> You cannot use java.io.File methods from a Workflow script if you are 
> using slaves, since the script always runs on the master. If you need to 
> inspect files beyond what readFile/writeFile provides, use a sh script or 
> the like.
>

-- 
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/038ea490-e3cb-4043-b352-e24fc6d7b9a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to