Thursday, 15 September 2011

configuration - email publisher for cruisecontrol.net -


I'm trying to configure our build process so that the build-up builder is emailed.

I should do something wrong because even though I have a group well defined and everyone has been sent an exception email.

Below is a code section showing my current structure. This email configuration XML file is imported into my projects. Is there something that I do not understand how the notification type should be used? Thank you.

  & lt; Cb: config-template xmlns: cb = "vase: ccnet.config.builder" & gt; & Lt; Email = "$ (MAIL_FROM)" mailhost = "$ (MAIL_HOST)" mailport = "25" includeDetails = "TRUE" & gt; & Lt; Users & gt; & Lt; Username = "DevTeam" group = "developers" address = "ACDev@companyname.com" /> & Lt; User Name = "QA-OnPrime" Group = "QA" Address = "QA-OnProte @ Companion" /> & Lt; User name = "buildmanger" group = "buildmaster" address = "acbuilds@companel.de" /> & lt; Username = "some name" group = "ba" address = "sname@companyname.com" /> & Lt; / Users & gt; & Lt; Groups & gt; & Lt; Group name = "Buildmaster" & gt; & Lt; Notifications & gt; & Lt; NotificationType & gt; Always & lt; / NotificationType & gt; & Lt; / Notifications & gt; & Lt; / Groups & gt; & Lt; Group name = "Developers" & gt; & Lt; Notifications & gt; & Lt; NotificationType & gt; Failed & lt; / NotificationType & gt; & Lt; NotificationType & gt; Success & lt; / NotificationType & gt; & Lt; NotificationType & gt; Change & lt; / NotificationType & gt; & Lt; / Notifications & gt; & Lt; / Groups & gt; & Lt; Group name = "qa" & gt; & Lt; Notifications & gt; & Lt; NotificationType & gt; Failed & lt; / NotificationType & gt; & Lt; NotificationType & gt; Success & lt; / NotificationType & gt; & Lt; NotificationType & gt; Change & lt; / NotificationType & gt; & Lt; NotificationType & gt; Fixed & lt; / NotificationType & gt; & Lt; / Notifications & gt; & Lt; / Groups & gt; & Lt; Group name = "BA" & gt; & Lt; Notifications & gt; & Lt; NotificationType & gt; Change & lt; / NotificationType & gt; & Lt; NotificationType & gt; Fixed & lt; / NotificationType & gt; & Lt; / Notifications & gt; & Lt; / Groups & gt; & Lt; Group name = "PHITem" & gt; & Lt; Notifications & gt; & Lt; NotificationType & gt; Failed & lt; / NotificationType & gt; & Lt; NotificationType & gt; Success & lt; / NotificationType & gt; & Lt; NotificationType & gt; Change & lt; / NotificationType & gt; & Lt; NotificationType & gt; Fixed & lt; / NotificationType & gt; & Lt; / Notifications & gt; & Lt; / Groups & gt; & Lt; / Groups & gt; & Lt; ModifierNotificationTypes & gt; & Lt; NotificationType & gt; Failed & lt; / NotificationType & gt; & Lt; NotificationType & gt; Fixed & lt; / NotificationType & gt; & Lt; NotificationType & gt; Success & lt; / NotificationType & gt; & Lt; NotificationType & gt; Change & lt; / NotificationType & gt; & Lt; NotificationType & gt; Exception & lt; / NotificationType & gt; & Lt; / ModifierNotificationTypes & gt; & Lt; XslFiles & gt; & Lt; File & gt; XSL \ header.xsl & lt; / File & gt; & Lt; File & gt; XSL \ compile.xsl & lt; / File & gt; & Lt; File & gt; XSL \ modifications.xsl & lt; / File & gt; & Lt; / XslFiles & gt; & Lt; / Email & gt; & Lt; / CB: config-templates & gt; You have all the builders who receive the mail, and the modifier below is a setup I use, and it does a great job, compared to that you have fewer groups, but you will get this idea.  
  & lt; Cb: define name = "email_publisher" & gt; & Lt; By email = "cruise control @exways" mailhost = "mailserver" include = "TRUE" & gt; & Lt; Users & gt; & Lt; User name = "Reuben Wilms" group = "Buildmaster" address = "ruben.willems@whatever.com" / & gt; & Lt; / Users & gt; & Lt; Groups & gt; & Lt; Group name = "Buildmaster" & gt; & Lt; Notifications & gt; & Lt; NotificationType & gt; Exception & lt; / NotificationType & gt; & Lt; / Notifications & gt; & Lt; / Groups & gt; & Lt; / Groups & gt; & Lt; Converters & gt; & Lt; LdapConverter domainName = "FortKinox" ldapQueryField = "displayName" /> & Lt; / Converters & gt; & Lt; ModifierNotificationTypes & gt; & Lt; NotificationType & gt; Failed & lt; / NotificationType & gt; & Lt; NotificationType & gt; Fixed & lt; / NotificationType & gt; & Lt; / ModifierNotificationTypes & gt; & Lt; / Email & gt;  


No comments:

Post a Comment