Cruise Control .Net 未显示 Nant 构建错误

Cruise Control .Net not showing Nant build errors(Cruise Control .Net 未显示 Nant 构建错误)
本文介绍了Cruise Control .Net 未显示 Nant 构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我们正在运行 Cruise Control 1.5.7256.1,并使用它使用 Nant 和 Nantcontrib 进行构建.构建失败并正确成功,但是当它们失败时,相关的错误消息将显示在 CCNet 构建报告页面上.见下图

We are running Cruise Control 1.5.7256.1 and using it to do builds using Nant and Nantcontrib. The builds are failing and succeeding correctly, but when they fail the related error messages are being shown on the CCNet Build Report page. See image below

可以在查看构建日志"页面上看到构建错误,但它们不会进入构建报告"页面.构建本身非常简单,它只是一个构建 .Net 3.5 .sln 文件的 Nantcontrib msbuild 元素.

The build errors can be seen on the View Build Log page, but they aren't making it through to the Build Report page. The build itself is pretty simple, it's just a Nantcontrib msbuild element that builds a .Net 3.5 .sln file.

有什么想法吗?

推荐答案

你检查过dashboard.config 文件吗?在这个文件中,您可以像这样在 xslfileNames 部分添加/删除 xsl 日志解析器:

Did you check the dashboard.config file? In this file you can add/delete xsl log parsers in the xslfileNames section like this :

<buildPlugins>
  <buildReportBuildPlugin>
    <xslFileNames>
        <xslFile>xslheader.xsl</xslFile>
        <xslFile>xslcompile.xsl</xslFile>
        <xslFile>xslcompile-msbuild.xsl</xslFile>
        <xslFile>xslunittests.xsl</xslFile>
        <xslFile>xslMsTestSummary.xsl</xslFile>
        <xslFile>xslmodifications.xsl</xslFile>        
    </xslFileNames>
  </buildReportBuildPlugin>
  <...>
</buildPlugins>

如果你想在你的报告中输出 Nant 输出,你必须有 xslcompile.xsl 这一行.

If you want Nant outputs in your report, you must have the xslcompile.xsl line.

您在 server/ccnetservice.exe.config 中有一个类似的部分用于电子邮件.

You have a similar section in the server/ccnetservice.exe.config which is used for emails.

如果您更改 webdashboard.config 中的某些内容,则必须重新启动整个 iis 才能看到修改.

If you change something in webdashboard.config, you'll have to restart the whole iis to see the modifications.

这篇关于Cruise Control .Net 未显示 Nant 构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

MSBuild cannot find a reference(MSBuild 找不到参考)
The reference assemblies for framework .NETCore, Version=v5.0 were not found(未找到框架 .NETCore,Version=v5.0 的参考程序集)
quot;File has a different computed hash than specified in manifestquot; error when signing the EXE(“文件的计算哈希值与清单中指定的不同签署EXE时出错)
Good-practices: How to reuse .csproj and .sln files to create your MSBuild script for CI?(良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 MSBuild 脚本?)
Run an MSBuild target only if project is actually built(仅在实际构建项目时运行 MSBuild 目标)
MS-Build BeforeBuild not firing(MS-Build BeforeBuild 未触发)