Network share timeout

 Hello

I'm having a few problems copying a built solution over to an off-site production server. The file in question is a zip file around 15mb. I'm using the built-in Copy Files action to copy the zip to a specified network share. Sometimes it works fine and only takes a minute or so, other times I receive this error:

Failed to copy file MySourceFile -> MyDestinationFile

Win32 error: The specified network name is no longer available

Any ideas? I've tried mapping a drive through Windows and using the drive letter rather than the network share address, although I could try mapping it as a Finalbuilder action. If I run the build script interactively it doesn't fail, the network share is kept active.

 

Any help is appreciated - thanks.

 

Hi James,

Try using the Robocopy or XCopy actions to copy the files over as they should be more reliable.

Regards,
Paul.

 Thanks, Xcopy seems to work using the built-in action.

 
The generated command line for anyone stuck is something like xcopy source-folder destination-folder\ /Y /I
This copies the contents of the source folder into the destination folder, overwriting any matching files.
 
Thanks