使用ccnet制作自定义报告 [英] Making a custom report with ccnet

查看:52
本文介绍了使用ccnet制作自定义报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有我的输出,我使用合并任务将其放入ccnet。

So I have my output that I used the merge task to put into ccnet.

现在我需要做的是提供自己的自定义xsl和输出数据。

Now what I need to do is come up with my own custom xsl and output the data.

关于在哪里可以找到如何进行此操作的教程的任何想法?

Any ideas on where there maybe a tutorial on how to do this?

例如我需要使用插件吗?我可以创建自己的吗?动作名称做什么?

For example what plugin do I need to use? Can I create my own? What does action name do?

<xslReportBuildPlugin description="MSBuild Output" actionName="MSBuildOutputBuildPlugin" xslFileName="xsl\msbuild.xsl" />


推荐答案

在您的巡航控制文件夹中:

in your cruise control folder:

CruiseControl.NET\webdashboard\xsl


  • 复制任何现有的xsl(最好是一个与您已经想要的xsl或您喜欢的格式的xsl)。您也可以从头开始创建xsl文件。

  • 使用自己的文件名将其编辑为所需的文件。

我将msbuild.xsl复制到BMsBuild.xsl并进行了更改。

I copied the msbuild.xsl to BMsBuild.xsl and made my changes.

然后在dashboard.config

then in dashboard.config

<xslReportBuildPlugin description="BBuildReport" actionName="BBuildReport" xslFileName="xsl\Bmsbuild.xsl"></xslReportBuildPlugin>




  • 说明:您希望它在Webdashboard链接上具有的标题

  • actionName:唯一名称,将用于生成该xsl / report的URL

  • xslFileName:xsl的路径通常仅为xsl [您的xsl文件名] .xsl

  • 这是最简单的方法。该文件几乎完全是xsl,因此您实际上不需要做任何特别的事情。除了xsl将从您在 ccnet.config

    That's the easiest way. The file is nearly entirely xsl so there's not really anything special you need to do or know. Except that the xsl is going to target the merged xml file from whatever you have in the publishers xml logger tag in your ccnet.config

    <publishers>
      <statistics/>
      <xmllogger logDir="D:\Projects\TFS\Main\BuildProcess\logs\ServiceBuilds" />
    </publishers>
    

    这篇关于使用ccnet制作自定义报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆