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?
v2.3.3.1369
Regards,
Dawid