I have a bit of code that looks like this

        def source_folder_name = "${pwd()}/${destination}"
        def source_folder = new File(source_folder_name)
        if (!source_folder.exists())
            echo "Source folder ${source_folder_name} does not exist"
            echo "Deleting folder ${source_folder_name}"

Now on Linux (on the master) it works fine.

On Windows (on a slave) it insists the folder does not exist, even though 
it does.

The folder is on the local machine in both cases.

I have tried replacing all forward slashes in the path with backslashes, 
and vice-versa but it doesn't seem to make any difference.

Am I missing something?

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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to