> On 24.01.2017, at 20:41, Raja Chinnam <[email protected]> wrote: > > Getting a list of files from jenkins workspace using groovy fails on one node > but it works on another. How can I investigate it? There was a similar error > when I tried "new File(pd).eachFile" method but "fileExists "$pd\\gol.bat" > returned true.
Pipelines are executed on the Jenkins master, and only through the magic of remoting-enabled APIs do things happen on the selected node. So File, and everything using File, doesn't work, and never will: It always executes on master. 1: https://wiki.jenkins-ci.org/display/JENKINS/Making+your+plugin+behave+in+secured+Jenkins -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7C4407EC-025E-422B-A3E1-05EE1A3E2359%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
