Sure can. It's straightforward after getting over the initial learning curve
of css and xsl. For a helloworld example open up server/xsl/header.xsl in
your favorite text editor and look for this line

<tr><td class="header-title" colspan="2">BUILD SUCCESSFUL</td></tr>

Change "BUILD SUCCESSFUL" to "Hello World from CC" and save.

Restart the cc service and then trigger a build that will succeed. Now your
email will show Hello World from CC instead of BUILD SUCCESSFUL.

All cruisecontrol is doing is using xsl stylesheets to transform a big xml
log into html. So you can make it look like anything you want. The css file
(cruisecontrol.css) in server/xsl controls the formatting of the tables in
the emails. This is sort of a template that keeps the
emails looking coherent.

So you can write your own xsl files to transform your own xml logs that you
have merged into the cruisecontrol log and you can customize the existing
xsl files and css. I think you can tell cruisecontrol to look somewhere
specific
for the xsl dir allowing you to put it under version control. I know it
works in regular cruisecontrol so I'm sure there's some tag for that.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of capt edgar
Sent: Sunday, February 13, 2011 5:03 PM
To: ccnet-user
Subject: [ccnet-user] Email templates

Hi there

I have successfully managed to setup a basic working email publish task in
CC The email sent out have the basic inormation of the projects plus all the
things when u set the "include details = true" such as run time, last
modifications etc etc

can we edit this information being sent out i.e change the wordings, layout
etc etc Also is there any template examples i can go through to change the
email format i'm sending out

regards

Reply via email to