在 CruiseControl 仪表板中显示 HTML 报告

发布于 2024-07-18 07:51:40 字数 738 浏览 5 评论 0 原文

我最近一直在研究 CruiseControl 配置(我是一个完整的 CC 菜鸟),到目前为止,我了解到构建过程生成的各种 XML 报告(例如 mbunit.xml、ncover.xml、fxcop.xml)可以显示在通过将 xml 的引用添加到 ccnet.config 的以下部分来创建仪表板:

<publishers>
 <merge>
  <files>
   <file>logs\some-report.xml</file>
  </files>
 </merge>
</publish>

添加 xsl 文件以将 xml 转换为可呈现的 html,并将报告构建插件添加到引用 xsl 的仪表板.config:

<xslReportBuildPlugin description="Some report"
actionName="SomeReportAction" xslFileName="xsl\some-report.xsl" />

我的问题是:如果我有一些纯 HTML 的报告(由 JGregory 的 Docu 生成的代码文档和由 jpboodhoo 的 Bdddoc 生成的测试规范),有什么方法可以以类似的方式在仪表板中显示这些报告吗? 我无法弄清楚这一点。 我确实考虑过将ExternalLink直接添加到HTML页面,但这是在用户通常无法访问的受保护区域中。 有人有什么想法吗?

I have been looking into CruiseControl configuration recently (I'm a complete CC noob) and so far I understand that various XML reports generated by your build process (eg mbunit.xml, ncover.xml, fxcop.xml) can be shown in the dashboard by adding a reference to the xml to the following part of the ccnet.config:

<publishers>
 <merge>
  <files>
   <file>logs\some-report.xml</file>
  </files>
 </merge>
</publish>

adding an xsl file to transform the xml into presentable html and adding a report build plugin to dashboard.config which references the xsl:

<xslReportBuildPlugin description="Some report"
actionName="SomeReportAction" xslFileName="xsl\some-report.xsl" />

My question is: if I have some reports (code documentation generated by JGregory's Docu and test specs generated by jpboodhoo's Bdddoc) which are pure HTML, is there any way I can show these in the dashboard in a similar way? I can't figure this out. I did think of adding an ExternalLink directly to the HTML page, but this is in a protected area which users normally cant access. Anyone any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

╰沐子 2024-07-25 07:51:40

目前,这在 CruiseControl.NET 版本 1.4.4 之前是不可能的。 不过,此功能已作为 1.5.0 版本的一部分添加。

我们还无法为您提供发布的时间表,但您可以从 http://ccnetlive.thoughtworks.com/CCNet-builds/1.5.0/

克雷格

Currently this is not possible in CruiseControl.NET up to version 1.4.4. However this functionality is being added as part of version 1.5.0.

We can't give you a timeframe on the release yet, but you can download and try out the latest version from http://ccnetlive.thoughtworks.com/CCNet-builds/1.5.0/.

Craig

以为你会在 2024-07-25 07:51:40

正如 craig 已经提到的,此功能已在 CCNet 1.5 中添加,您可以在此处找到有关 HtmlPlugin 的文档: http://cruisecontrolnet.org/projects/ccnet/wiki/HtmlReportPlugin

As craig already mentioned this functionality was added in CCNet 1.5, you'll find the documentation about the HtmlPlugin here: http://cruisecontrolnet.org/projects/ccnet/wiki/HtmlReportPlugin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文