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/ba5de980-98e7-4b38-89d5-5bb5bc3a0e82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to