How do I configure Cruise Control.Net to show the correct error in the web panel?

We have a Cruise Control.Net setup to create .Net projects from control source. The problem is that when the build fails, the error log shows a huge array of xml and we are trying to figure out the actual error. How do I configure Cruise Control to display the error in a more readable format?

0


a source to share


2 answers


Make sure xmllogger is included in your ccnet config and try viewing build results using ccnet web panel.



See an example of failed build output .

+2


a source


To make it even more readable (include the project name along with the error)

in webdashboard/xsl/msbuild.xsl

add

<xsl:if test="parent::target/@name != ''">
            target-><xsl:value-of select="parent::target/@name" />&#160;
        </xsl:if>

      

a little higher



<xsl:if test="@file != ''" >

      

in the section <xsl:template match="error">

.

so in general the msbuild.xsl section will be

    <xsl:template match="error">
    <div style="color:orangered">
            <xsl:value-of select="./../../@file" />&#160;   
        <xsl:if test="parent::target/@name != ''">
            target-><xsl:value-of select="parent::target/@name" />&#160;
        </xsl:if>   
        <xsl:if test="@file != ''" >
            <xsl:value-of select="@file"/>&#160;(<xsl:value-of select="@line"/>,<xsl:value-of select="@column"/>):&#160;
        </xsl:if>
        error&#160;<xsl:value-of select="@code"/>:&#160;<xsl:value-of select="text()" />
    </div>
</xsl:template>

      

0


a source







All Articles