在构建大量项目时如何防止不正确的CI构建失败?

问题描述 投票:2回答:2

如何解决此错误的CI构建失败? c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1360,9): warning MSB3101: Could not write state file "obj\x86\Debug\ResolveAssemblyReference.cache". The process cannot access the file 'C:\Servers\CruiseControl.NET\Builds\WheelMUDSharp\src\Actions\obj\x86\Debug\ResolveAssemblyReference.cache' because it is being used by another process.

我们有大约170个DotNetNuke模块,它们全部依赖于两个模块。当两个依赖关系发生变化并且所有项目都重建后,我们将得到不正确的失败,如上面的错误。我们怎样才能阻止这些失败?

continuous-integration cruisecontrol.net dotnetnuke
2个回答
2
投票

将那些项目放在一个队列中-因为它们都写入同一文件,所以它们不能同时构建。


1
投票

理想情况下,每个项目应具有自己的代码副本,以便可以同时构建多个项目。否则,skolima对单个队列的建议就是要走的路。

© www.soinside.com 2019 - 2024. All rights reserved.