Hi Jonathan,

You might check:

   - When it's said "Source folder <path> does not exist", check that <path> 
   really exists and it's right.
   - Jenkins process on slave has permissions on that path.

I hope be useful.

Best regards,

El sábado, 15 de octubre de 2016, 0:17:25 (UTC+2), Jonathan Hodgson 
> Hi,
> 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"
>         }
>         else
>         {
>             echo "Deleting folder ${source_folder_name}"
>             source_folder.deleteDir()
>         }
> 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