其中一位开发人员正在将补丁应用于CI,并打破了CI构建.在构建日志中发生如下错误.我已经完成了以下步骤,仍然无法正常工作.
问题:
构建日志:
[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
Run Code Online (Sandbox Code Playgroud)
小智 11
运行Selenium测试时,我们遇到了这个问题,浏览器没有正常关闭.我们实际上创建了一个powershell脚本,我们在任何代理上执行这些脚本会杀死任何未完成的IE或Firefox或Chrome进程.我们还确保我们的测试始终在拆卸时关闭浏览器.
如果您具有足够的权限,则可以从TeamCity Web界面远程重新启动构建代理.您可以通过单击顶部的"代理"选项卡,选择违规代理,然后选择"重新启动代理计算机".您可以在TeamCity文档中阅读更多内容.
Pau*_*unt 10
问题1.是的,删除文件夹是解决当前情况的最佳选择.
问题2.每当我遇到这样的问题时,都是因为文件夹中有一个文件正在使用,无法删除.因此,我建议您使用TeamCity服务器上的Process Monitor之类的工具来确定正在使用的文件.
问题3.一旦你弄清楚了什么在使用中,你需要弄清楚为什么要再次停止它.
| 归档时间: |
|
| 查看次数: |
9780 次 |
| 最近记录: |