So you solved the issue of it running on the wrong system, right? Well, all the "does not exist" messages have a leading /. Not sure where that comes from, but I'm pretty sure that that is what it is complaining about. Also, looking at FileNameFinder, all examples are it finding files, not directories, but examples are clearly using c:/path/path syntax. I'm thinking you may want to try changing up your wildcard to something like '**/*.xml' or '**/*.txt', whatever you actually have on that file system.
hth Martina On Monday, October 17, 2016 at 12:36:54 PM UTC-6, Jonathan Hodgson wrote: > > I've tried every path variation I can think of > > def paths = [ > "c:", > "c:\\", > "c:\\Jenkins", > "c:\\Jenkins\\workspace\\", > "c:\\Jenkins\\workspace\\WPF-TryBuild", > "c:/", > "c:/Jenkins", > "c:/Jenkins/workspace/", > "c:/Jenkins/workspace/WPF-TryBuild", > "C:\\", > "C:\\Jenkins", > "C:\\Jenkins\\workspace\\", > "C:\\Jenkins\\workspace\\WPF-TryBuild", > "C:/", > "C:/Jenkins", > "C:/Jenkins/workspace/", > "C:/Jenkins/workspace/WPF-TryBuild" > ] > for (path in paths) > { > try { > def hg_folders = new FileNameFinder().getFileNames(path, '*') > echo "SUCCESS!! Found $path" > } > catch(Exception err) { > echo "There was a problem finding $path" > echo err.getMessage() > } > } > > > The result is this > > [Windows] There was a problem finding c: > [Windows] /c: does not exist. > > [Windows] There was a problem finding c:\ > [Windows] /c: does not exist. > > [Windows] There was a problem finding c:\Jenkins > [Windows] /c:/Jenkins does not exist. > > [Windows] There was a problem finding c:\Jenkins\workspace\ > [Windows] /c:/Jenkins/workspace does not exist. > > [Windows] There was a problem finding c:\Jenkins\workspace\WPF-TryBuild > [Windows] /c:/Jenkins/workspace/WPF-TryBuild does not exist. > > [Windows] There was a problem finding c:/ > [Windows] /c: does not exist. > > [Windows] There was a problem finding c:/Jenkins > [Windows] /c:/Jenkins does not exist. > > [Windows] There was a problem finding c:/Jenkins/workspace/ > [Windows] /c:/Jenkins/workspace does not exist. > > [Windows] There was a problem finding c:/Jenkins/workspace/WPF-TryBuild > [Windows] /c:/Jenkins/workspace/WPF-TryBuild does not exist. > > [Windows] There was a problem finding C:\ > [Windows] /C: does not exist. > > [Windows] There was a problem finding C:\Jenkins > [Windows] /C:/Jenkins does not exist. > > [Windows] There was a problem finding C:\Jenkins\workspace\ > [Windows] /C:/Jenkins/workspace does not exist. > > [Windows] There was a problem finding C:\Jenkins\workspace\WPF-TryBuild > [Windows] /C:/Jenkins/workspace/WPF-TryBuild does not exist. > > [Windows] There was a problem finding C:/ > [Windows] /C: does not exist. > > [Windows] There was a problem finding C:/Jenkins > [Windows] /C:/Jenkins does not exist. > > [Windows] There was a problem finding C:/Jenkins/workspace/ > [Windows] /C:/Jenkins/workspace does not exist. > > [Windows] There was a problem finding C:/Jenkins/workspace/WPF-TryBuild > [Windows] /C:/Jenkins/workspace/WPF-TryBuild does not exist. > > > Those paths most certainly do exist, > -- 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/4c3fafce-30a0-4d41-9253-fcdaee3bd84e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.