Email notification when assembly fails in CruiseControl.Net

I installed a continuous integration environment using CruiseControl.Net. I want to know how an email can be sent to a person during a build failure.

Thanks at Advance.

+5
source share
1 answer

You can use a block <email>in your block <publishers>.

Our system looks like this:

<publishers>
  <xmllogger />

  <email from="cruise@ourcompany.com"   mailhost="mail.ourcompany.com" includeDetails="TRUE"  mailport="25" useSSL="FALSE">
    <users>
      <user name="Mr Happy" group="buildmaster" address="mrhappy@ourcompany.com" />
      <user name="Mr Strong" group="buildmaster"   address="mrstrong@ourcompany.com" />
    </users>
    <groups>
      <group name="buildmaster" notification="change" />
    </groups>
    <converters>
      <regexConverter find="$" replace="@ourcompany.com" />
    </converters>
    <modifierNotificationTypes>
      <NotificationType>Failed</NotificationType>
      <NotificationType>Fixed</NotificationType>
    </modifierNotificationTypes>
  </email>
</publishers>

NB, we use the control unit <svn>to get the last source and start the assembly. The section <regexConverter>accepts the user svn and adds "@ ourcompany.com" to the end to form an email address.

SMTP- . , gmail, SMTP-.

" " (Mr. Happy Mr Strong) , , SVN, , .

<xmllogger/> ( <publishers>), XML-. -.

+10

All Articles