一位开发人员正在向 CI 应用补丁并破坏了 CI 构建。错误发生在构建日志中,如下所示。我已经完成了以下步骤,但仍然无法正常工作。
- 我无法手动删除文件夹:35b0f615bcea75bd,尽管我对构建代理目录具有完全的写入和删除权限。
- 我试图运行强制干净结帐,仍然无法正常工作。
- 重新运行构建,仍然无法正常工作。
问题:
- 手动删除此文件是修复以下错误的最佳解决方案吗?
- 如果答案是“是”,我接下来应该尝试什么来删除此文件?
- 应用补丁时防止此错误再次发生的最佳方法是什么?
构建日志:
[18:32:28]Checking for changes
[18:35:15]Publishing internal artifacts
[18:35:15]Clearing temporary directory: D:\TeamCity\buildAgent\temp\buildTmp
[18:35:15]Checkout directory: D:\TeamCity\buildAgent\work\35b0f615bcea75bd
[18:35:15]Updating sources: server side checkout (2m:09s)
[18:35:16][Updating sources] Will perform clean checkout. Reason: Agent doesn't have any version of the project sources
[18:35:16][Updating sources] Building clean patch for VCS root: ProjectName Trunk
[18:37:24][Updating sources] Transferring cached clean patch for VCS root: ProjectName Trunk
[18:37:25][Updating sources] Repository sources transferred: 27.61Mb total
[18:37:25][Updating sources] Removing D:\TeamCity\buildAgent\work\35b0f615bcea75bd
[18:37:25][Updating sources] Error while applying patch: Failed to delete: D:\TeamCity\buildAgent\work\35b0f615bcea75bd\ProjectName\bin\Debug
[18:37:25]Publishing internal artifacts
[18:37:25]Build failed to start. Artifacts will not be published for this build
[18:37:26]Build finished