About/Contact

Steve Trefethen

Steve Trefethen is a Director of Engineering at Reply. Contact me

View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
$720 in referrals so far!


Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.



Configuring email notifications for CruiseControl.NET

November 26 2007 5:15AM
I gotten a few emails asking how I to setup email notifications for builds running under CruiseControl.NET. Here is a section from one of the ccnet.config files I’m using on a CruiseControl.NET server:
1 <publishers> 2 <statistics /> 3 <xmllogger /> 4 5 <email from="fromaddr@here.com" mailhost="192.168.1.14" 6 mailhostPassword="pwd" mailhostUsername="username" 7 includeDetails="true"> 8 <users> 9 <user name="Steve Trefethen" address="stevet@nospam.com" 10 group="NotifyGroup" /> 11 </users> 12 <groups> 13 <group name="NotifyGroup" notification="failed" /> 14 </groups> 15 </email> 16 </publishers>
Nothing unusual except of course for changing some of the more obvious details. :-)
FacebookDel.icio.usDigg It!

Comments (8) -

12/18/2007 6:55:20 PM #

FYI, there are some changes beyond the release level of 1.3 (build #1.3.0.2918) that make email publishers easier to configure if you have more than a handful of users to set up.

Ross Patterson

12/19/2007 3:55:41 AM #

Hi Ross,
  Yes, I've noticed the latest changes and in fact, I have a blog post in the works talking about some of the post 1.3 features. Btw, thanks for you help on the sourcecontrol exception issue.

Steve Trefethen

5/7/2008 2:46:12 PM #

Is there a way to set up cruise control to have emails go out to those uerss who have committed a files for a build that fails? I've read how you can set up users and not assign them to a group, which intern emails them whether the build fails or passes. I want the same kind of functionality, but only when the build fails. I dont want to have them get emailed if the build passes.

Craig

5/7/2008 4:37:46 PM #

Craig,
  Yes, there is a way to target email at source control userids. For more details refer to confluence.public.thoughtworks.org/.../Email+Publisher">this page of the CCNET docs. Specifically, look at how Converters work where you can convert a sourcecontrol userid to an email address. I'm fairly certain that the support for this feature was introduced after the 1.3 release so you'll likely want to grab a later build or grab the tip and rebuild CCNET.

Steve Trefethen

5/7/2008 5:56:13 PM #

Thats awesome. Thanks for responding so quickly, and for some great blogs that are easily understood.

Craig

5/7/2008 5:58:10 PM #

Hi Craig,
  Thanks, I'm glad I could help.

Steve Trefethen

9/17/2008 4:03:24 PM #

How do I configure the email body. I would like to look similar to the Build Report in Dash board. In Dashboard I see Build status, Modifications and MSTest Summary.

Thanks
KMD

KMD

11/26/2009 12:10:47 AM #

Hi,

I am not able to send the email through CCnet.Can you please help me out.
I have created one email list file EMailList.xml,below is the content of this file
<cb:config-template xmlns:cb="urn:ccnet.config.builder">
  <cb:define name="EmailPublisher">
    <email subjectPrefix="CP" from="BuildTeam@uk.tesco.com" mailhost="mail host" includeDetails="True">
      
      <users>
      <user name="Singh,Saurabh" address="saurabh.singh@in.tesco.com" group="buildteam" />
      </users>
      <groups>
        <group name="buildteam" notifications="Change"/>
      </groups>
     </email>

    </cb:define>
</cb:config-template


The email file has been mention in the ccnet.config as below

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<cb:include href="EMailList.xml" xmlns:cb="urn:ccnet.config.builder"/>

<project name=""-----
Details of the project
      <cb:EmailPublisher/>
    </publishers>
  </project>

This is how i had configure and i dont know why its working, I am not receiving any issue but no mail is generating.
Can you please help me out in this.
Please let me know if i m not clear

saurabh singh India

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading