CruiseControl.Net Web 仪表板不显示结果
在 CruiseControl.net Web 仪表板中显示结果时出现问题。
我已经构建了一个配置文件,该文件启动了项目的构建。然后它在我的测试上运行 nunit,它们执行并完成得很好(我可以打开日志并在那里查看结果)。 ccnet
日志显示日志文件已成功合并。但是,尽我所能,我无法让它出现在网络仪表板中。它只是给出了令人沮丧的
BUILD FAILED
Project: GroundControlTests
Date of build: 2011-01-07 17:16:36
Running time: 00:00:58
Integration Request: mmayo triggered a build (ForceBuild) from PC0098
Projects built with no warnings at all :-)
Modifications since last build (0)
消息:尽管失败了。
我怀疑这与 xsl 转换有关,但已经尝试了我能想到的一切。
当然,如果我单击“查看构建日志”,它会显示,但主报告不会显示通过和失败:(
我的配置文件在下面,任何建议表示赞赏!
---nant.build---
<project name="GroundControl" default="cleanNunit" basedir=".">
<description>Cleanup tasks</description>
<target name="cleanNunit"
description="removes nunit log file">
<delete file="${CCNetArtifactDirectory}\nunit-results.xml"
failonerror="true" />
</target>
</project>
-----ccnet.config-----
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project name="GroundControlTests">
<workingDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</workingDirectory>
<artifactDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</artifactDirectory>
<prebuild>
<nant>
<executable>C:\Nant\bin\nant.exe
</executable>
<baseDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</baseDirectory>
<nologo>false</nologo>
<buildFile>nant.build</buildFile>
<targetList>
<target>cleanNunit</target>
</targetList>
</nant>
</prebuild>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
</executable>
<workingDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot
</workingDirectory>
<projectFile>GroundControlReboot.sln</projectFile >
<buildArgs>/noconsolelogger
/v:quiet
/noconlog
/p:Configuration=Debug
/p:ReferencePath="C:\Program Files\NUnit 2.5.9\bin;C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
/p:AdditionalReferencePath="C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
</buildArgs>
<targets>ReBuild</targets >
<timeout>180</timeout >
<!-- <logger>C:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger>-->
</msbuild>
<exec>
<executable>C:\Program Files\NUnit 2.5.9\bin\net-2.0\nunit-console.exe
</executable >
<buildArgs>/xml:C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\nunit-results.xml
C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\GroundControlReboot\bin\Debug\GroundControlReboot.dll
</buildArgs>
<buildTimeoutSeconds>180</buildTimeoutSeconds>
</exec>
</tasks>
<publishers>
<merge>
<files>
<file>
C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\*-results.xml
</file>
</files>
</merge>
<xmllogger />
<statistics />
<artifactcleanup cleanUpMethod="KeepLastXBuilds"
cleanUpValue="20" />
</publishers>
</project>
</cruisecontrol>
-----dashboard.config-----
<?xml version="1.0" encoding="utf-8"?>
<dashboard>
<remoteServices>
<servers>
<server name="local" url="tcp://localhost:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false" />
</servers>
</remoteServices>
<plugins>
<farmPlugins>
<farmReportFarmPlugin />
<cctrayDownloadPlugin />
<administrationPlugin password="" />
</farmPlugins>
<serverPlugins>
<serverReportServerPlugin />
</serverPlugins>
<projectPlugins>
<projectReportProjectPlugin />
<viewProjectStatusPlugin />
<latestBuildReportProjectPlugin />
<viewAllBuildsProjectPlugin />
</projectPlugins>
<buildPlugins>
<buildReportBuildPlugin>
<xslFileNames>
<xslFile>xsl\header.xsl</xslFile>
<xslFile>xsl\msbuild2ccnet.xsl</xslFile>
<xslFile>xsl\modifications.xsl</xslFile>
<xslFile>xsl\nant.xsl</xslFile>
<xslFile>xsl\tests.xsl</xslFile>
</xslFileNames>
</buildReportBuildPlugin>
<buildLogBuildPlugin />
</buildPlugins>
<securityPlugins>
<simpleSecurity />
</securityPlugins>
</plugins>
</dashboard>
Having problems displaying the results in CruiseControl.net web dashboard.
I've built a config file which kicks off a build of the project. It then runs nunit
over my tests, they execute and finish just fine (I can open the log and see the results there). The ccnet
logs show that the log files were successfully merged. However, try as I might, I can't get it to appear in the web dashboard. It just gives the frustrating:
BUILD FAILED
Project: GroundControlTests
Date of build: 2011-01-07 17:16:36
Running time: 00:00:58
Integration Request: mmayo triggered a build (ForceBuild) from PC0098
Projects built with no warnings at all :-)
Modifications since last build (0)
message, despite failing.
I suspect it has something to do with the xsl transforms, but have tried just about everything I can think of.
Certainly if I click View Build log, it shows, but the main report doesn't show passes and fails :(
My config files are below, any suggestions appreciated!
---nant.build---
<project name="GroundControl" default="cleanNunit" basedir=".">
<description>Cleanup tasks</description>
<target name="cleanNunit"
description="removes nunit log file">
<delete file="${CCNetArtifactDirectory}\nunit-results.xml"
failonerror="true" />
</target>
</project>
-----ccnet.config-------
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project name="GroundControlTests">
<workingDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</workingDirectory>
<artifactDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</artifactDirectory>
<prebuild>
<nant>
<executable>C:\Nant\bin\nant.exe
</executable>
<baseDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot</baseDirectory>
<nologo>false</nologo>
<buildFile>nant.build</buildFile>
<targetList>
<target>cleanNunit</target>
</targetList>
</nant>
</prebuild>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
</executable>
<workingDirectory>C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot
</workingDirectory>
<projectFile>GroundControlReboot.sln</projectFile >
<buildArgs>/noconsolelogger
/v:quiet
/noconlog
/p:Configuration=Debug
/p:ReferencePath="C:\Program Files\NUnit 2.5.9\bin;C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
/p:AdditionalReferencePath="C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
</buildArgs>
<targets>ReBuild</targets >
<timeout>180</timeout >
<!-- <logger>C:\Program Files\CruiseControl.NET\server\Rodemeyer.MsBuildToCCNet.dll</logger>-->
</msbuild>
<exec>
<executable>C:\Program Files\NUnit 2.5.9\bin\net-2.0\nunit-console.exe
</executable >
<buildArgs>/xml:C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\nunit-results.xml
C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\GroundControlReboot\bin\Debug\GroundControlReboot.dll
</buildArgs>
<buildTimeoutSeconds>180</buildTimeoutSeconds>
</exec>
</tasks>
<publishers>
<merge>
<files>
<file>
C:\Source\Wholesale\Code.EventControl.TestingFramework\GroundControlReboot\*-results.xml
</file>
</files>
</merge>
<xmllogger />
<statistics />
<artifactcleanup cleanUpMethod="KeepLastXBuilds"
cleanUpValue="20" />
</publishers>
</project>
</cruisecontrol>
-----dashboard.config-------
<?xml version="1.0" encoding="utf-8"?>
<dashboard>
<remoteServices>
<servers>
<server name="local" url="tcp://localhost:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" backwardsCompatible="false" />
</servers>
</remoteServices>
<plugins>
<farmPlugins>
<farmReportFarmPlugin />
<cctrayDownloadPlugin />
<administrationPlugin password="" />
</farmPlugins>
<serverPlugins>
<serverReportServerPlugin />
</serverPlugins>
<projectPlugins>
<projectReportProjectPlugin />
<viewProjectStatusPlugin />
<latestBuildReportProjectPlugin />
<viewAllBuildsProjectPlugin />
</projectPlugins>
<buildPlugins>
<buildReportBuildPlugin>
<xslFileNames>
<xslFile>xsl\header.xsl</xslFile>
<xslFile>xsl\msbuild2ccnet.xsl</xslFile>
<xslFile>xsl\modifications.xsl</xslFile>
<xslFile>xsl\nant.xsl</xslFile>
<xslFile>xsl\tests.xsl</xslFile>
</xslFileNames>
</buildReportBuildPlugin>
<buildLogBuildPlugin />
</buildPlugins>
<securityPlugins>
<simpleSecurity />
</securityPlugins>
</plugins>
</dashboard>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我从仪表板管理部署 nunit 包时,它生成了三件事:
在 buildReportBuildPlugin 下添加了 xsl\unittests.xsl。这是构建摘要页面。
它还为侧边栏生成了两个项目,以查看 nunit 详细信息 (xsl\tests.xsl) 和 nunit 计时 (xsl\timings.xsl)。看起来您已经为构建摘要页面定义了 nunit 详细信息 xsl 文件,这可能就是您看不到任何内容的原因。如果您改用 xsl\unittests.xsl(并重新加载仪表板,以便它实际上读取更新的文件),则可能会起作用。另一种选择是从 Web 仪表板管理页面部署 nunit 包,这将为您更新仪表板.config 文件。
When I deployed the nunit package from the dashboard admin it generated three things:
Under buildReportBuildPlugin it added xsl\unittests.xsl. This is for the build summary page.
It also generated two items for the sidebar to see nunit details (xsl\tests.xsl) and nunit timings (xsl\timings.xsl). It looks like you have the nunit details xsl file defined for the build summary page which may be why you don't see anything. If you use xsl\unittests.xsl instead (and reload the dashboard so it actually reads the updated file) that may work. Another option is to just deploy the nunit package from the web dashboard administration page which will update the dashboard.config file for you.