【发布时间】:2009-09-09 16:05:27
【问题描述】:
我刚刚开始使用 CruiseControl.Net 设置持续集成服务器。为了简单起见,我使用 Visual Studio 任务来执行构建,将其指向项目解决方案文件。但是,当构建过程发生时,CC.Net 成功地从 Subversion 获取了最新的源版本,并且似乎运行了 devenv 命令。然后构建过程失败,但没有解释原因。这是输出:
构建失败
项目:我的项目
构建日期:2009-09-09 16:31:13
运行时间:00:00:49
集成请求:仪表板触发了构建(ForceBuild)自上次构建以来的修改 (0)
测试运行:0,失败:0,未运行:0, 时间:0 秒没有测试运行这个 项目没有任何测试
页面上没有显示任何其他内容。我的 XML 日志也不显示任何构建结果。
这是我的配置文件:
<!--<ccnetconfig><configurationVersion>1.4</configurationVersion></ccnetconfig>-->
<cruisecontrol>
<project name="MyProject">
<workingDirectory>C:\Users\Builder\Desktop\builder-pc\MyProject</workingDirectory>
<sourcecontrol type="svn">
<trunkUrl>svn://builder-pc/MyProject/trunk</trunkUrl>
<workingDirectory>C:\Users\Builder\Desktop\builder-pc\MyProject</workingDirectory>
<executable>C:\Program Files\Subversion\bin\svn.exe</executable>
<autoGetSource>True</autoGetSource>
<tagOnSuccess>True</tagOnSuccess>
</sourcecontrol>
<tasks>
<devenv>
<solutionfile>C:\Users\Builder\Desktop\builder-pc\MyProject\trunk\MyProject.sln</solutionfile>
<configuration>release</configuration>
<buildtype>Rebuild</buildtype>
<executable>C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe</executable>
<buildTimeoutSeconds>600</buildTimeoutSeconds>
</devenv>
</tasks>
</project>
</cruisecontrol>
我故意删除了SVN用户名和密码之类的东西。
使用 VS 命令提示符构建解决方案是可行的,尽管会出现警告。这是使用 CC.Net 将使用的相同开关。
有人可以帮忙吗?它失败是因为没有单元测试可以运行,还是因为警告?还是最好切换到 MSBuild 或 NAnt 而不是使用 Visual Studio 任务?
【问题讨论】: