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.
+2
a source to share
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" /> 
</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" /> 
<xsl:if test="parent::target/@name != ''">
target-><xsl:value-of select="parent::target/@name" /> 
</xsl:if>
<xsl:if test="@file != ''" >
<xsl:value-of select="@file"/> (<xsl:value-of select="@line"/>,<xsl:value-of select="@column"/>): 
</xsl:if>
error <xsl:value-of select="@code"/>: <xsl:value-of select="text()" />
</div>
</xsl:template>
0
a source to share