VSTS Extract zip 失败并显示“EPERM: operation not allowed, stat 'D:\MyFilePathHere”

Cal*_*dus 7 azure-devops azure-pipelines-release-pipeline

EPERM: operation not permitted, stat 'D:\MyFilePathHere在我的发布定义中提取选项之前,我经常但不经常遇到使用“提取文件”任务和清理目标文件夹的任务。它发生在多台机器上,但已通过重新部署自行解决。对将来防止这种情况的建议?

编辑:我将本地代理配置为作为网络服务运行,并且我已经让网络服务完全控制提取文件所在的文件夹。我在两台不同的机器上运行了发布定义。发布将在一个上成功,在另一个上失败。

Found: 1 files to extract: C:\agent\_work\r2\a\App-CI\App\App.zip Cleaning destination folder before extraction: D:\FilePathHere Error: EPERM: operation not permitted, stat 'D:\FilePathHere' ##[error]EPERM: operation not permitted, stat 'D:\FilePathHere ##[section]Finishing: Install New UI Files

Cal*_*dus 4

事实证明这是 GitHub 上的一个开放问题:https ://github.com/Microsoft/vsts-tasks/issues/5472

这似乎是代理和防病毒/安全软件之间的冲突。解决方法是在提取任务之前使用删除文件/文件夹任务,而不使用清理目标文件夹选项。