Deploy Success on copy files error

My website deployment succeeds in yellow even though during the “copy files” tasks I get the following error:

Purging the directory 'D:\MyWebDirectory’
Unable to copy the package to the specified directory ‘D:\MyWebDirectory’. One or more files in the directory may be locked by another process. You could use a PreDeploy.ps1 script to stop any processes that may be locking the file. Error details follow.
Access to the path ‘D:\myWebDirectory\some_file.config’ is denied.

I also have the variable OctopusTreatWarningsAsErrors defined.

Is it possible to fail deployment in this case?



Hi Dawid,

Sorry about this - there’s a bug impacting file copying in 2.3.3; we’ve posted a patch in now available on the Downloads page.