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,
Rachel
El sábado, 15 de octubre de 2016, 0:17:25 (UTC+2), Jonathan Hodgson
escribió:
>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/edfeedf6-b875-44ac-b423-3f6307cf2649%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.