Cruise Control .Net not showing Nant build errors

孤者浪人 提交于 2019-12-29 08:12:34

问题


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

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.

Any ideas?


回答1:


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>xsl\header.xsl</xslFile>
        <xslFile>xsl\compile.xsl</xslFile>
        <xslFile>xsl\compile-msbuild.xsl</xslFile>
        <xslFile>xsl\unittests.xsl</xslFile>
        <xslFile>xsl\MsTestSummary.xsl</xslFile>
        <xslFile>xsl\modifications.xsl</xslFile>        
    </xslFileNames>
  </buildReportBuildPlugin>
  <...>
</buildPlugins>

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

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

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



来源:https://stackoverflow.com/questions/3705502/cruise-control-net-not-showing-nant-build-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!