【发布时间】:2014-09-13 10:07:17
【问题描述】:
我对 Jenkins 和 Sonar 比较陌生,但我的任务是在我们的 C#/.NET 代码上运行代码质量并且遇到了一些问题。
从 Jenkins 开始,Sonar 运行正在定位我们项目中的程序集,然后无法构建它,说它无法找到它们。
我在下面包含了输出的摘录:
16:45:25.508 INFO - Using the following Visual Studio solution:
D:\jenkins\build001\workspace\G_Release\Sonar\Source\G.sln
16:45:25.629 INFO - Locating the assembly for the project: G.DataA...
16:45:25.630 INFO - The following candidate assembly was not built:
D:\jenkins\build001\workspace\G_Release\Sonar\Source\G.DataA\bin\Debug\G.DataA.dll
16:45:25.630 INFO - The following candidate assembly was not built:
D:\jenkins\build001\workspace\G_Release\Sonar\Source\G.DataA\bin\Release\G.DataA.dll
16:45:25.630 WARN - Unable to locate the assembly of project
D:\jenkins\build001\workspace\G_Release\Sonar\Source\G.DataA\G.DataA.csproj
所有程序集都会发生这种情况!
因为它对解决方案中的每个程序集都执行此操作,所以我假设这是我错过的一些压倒一切的因素/配置。
【问题讨论】:
标签: c# .net jenkins .net-assembly sonarqube