In CruiseControl.net, how do I include a build error message in my email?

If the assembly fails, I want to receive an error message from the log file and send it as part of the email body. How can i do this? I am using msbuild. I can attach the xml file from the buildlogs folder, but I would rather send plain text.

+4
source share
1 answer

This is pretty easy. Assuming you are registering the msbuild task correctly (for example, using the workworks logger), you need to:

  • Edit the ccservice.exe.config file (on the build server, path $ CCNET \ server): add the xsl files that you need in the xslFiles section (for email content)
  • Do the same with the dashboard.config file (on your build server, path $ CCNET \ dashboard), which is for the contents of the dashboard.

I think you need to add the xsl \ compile-msbuild.xsl file. For example, my section is as follows:

<xslFiles> <file name="xsl\header.xsl"/> <file name="xsl\compile.xsl"/> <file name="xsl\compile-msbuild.xsl"/> <file name="xsl\unittests.xsl"/> <file name="xsl\fit.xsl"/> <file name="xsl\modifications.xsl"/> </xslFiles> 
+2
source

Source: https://habr.com/ru/post/1332123/


All Articles