git - 使用 git 运行 TFS-2013 时经常出错

标签 git tfsbuild

我们将 TFS-2013 配置为使用 git 存储库。大多数时候一切正常,但我们会遇到间歇性的构建错误 - 随着时间的推移,它们甚至似乎变得更加频繁。

这是我们在出现问题时可以在构建日志中找到的内容:

Exception Message: An error was raised by libgit2. Category = Os (Error).

Could not remove directory. File 'C:/Builds/1/MyTool/MyTool_CI/src/.git/objects/pack/pack_git2_a02380' cannot be removed: The process cannot access the file because it is being used by another process.

(type LibGit2SharpException)

Exception Data Dictionary:

libgit2.code = -1

libgit2.category = 1

什么会导致这些错误..?

最佳答案

这似乎是一个正在进行的错误,正如this thread所看到的那样:

Can you repaire your VS2013 RTM and try again? Also, you can can see event viewer to see if there any useful info or have a try on other machines as I mentioned above.

关于git - 使用 git 运行 TFS-2013 时经常出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22243658/

相关文章:

git - 在 Git Gui 中看不到暂存和未暂存的文件列表

git - 如何使用 git add 或 git lfs 跟踪大量文件

visual-studio - 如何在构建过程中检查引用

powershell - 如何从命令行获取当前正在运行的 TFS 构建列表?

git - 使用多个 GIT 存储库构建 TFS

git - 在git中与master merge 后功能分支会发生什么

git - git restore --staged some-file 和 git checkout --some-file 有什么区别?

git - 如何让提交作者发送 git post-receive 电子邮件?

build - TFS CodedUI 测试工作流程具有单独的 UI 测试解决方案?

c# - WACK 检查构建