views:

365

answers:

3

Hi all, I just got a requirement teling me that i should send a mail to the developers concerned only when i detect errors in the compilation .If there are no errors ,mail need not be sent to anyone. So is there any way by which we can configure these things in ccnet.config file.

With kind regards Maddy

A: 

Only errors in compilation or you mean a failed build in general? A build can fail for a number of reasons, not just because of compilation errors.

For failed builds (and/or other build statuses), there is an email publisher you can use.

Igor Brejc
I just want to send the email only when i see compilation errors in my IDE.
Maddy
A: 

Hi,

I just want to send the email only when i see compilation errors in my IDE.is there any way by which we can configure that??

Regards Maddy

Maddy
From this and your previous questions about CCNet, I think you have problems understanding what CCNet is for and what continuous integration is. I suggest reading articles about CI.
Igor Brejc
Hi ,i am aware that we can configure the sending of mails when any build failiures occur or not.But i just want to know if there could be any method by which we can configure sending mails when errors are seen during compilation.I just got this requirement from the team.I just started goin through CI some 1.5 months back.So if i keep asking things which are really silly,kindly forgive me and please do take the pain in correcting me.
Maddy
+3  A: 

Maddy, You should be sending emails anytime the "Build" fails, doesn't matter if it is failing at compile, or any tests you have, or whatever. DO NOT LIMIT it to compile. Just because code compiles does not make it right.

Here is the link to docs and here is an example

<email from="[email protected]" mailhost="yourmailserver.com" includeDetails="True">
   <users />
   <groups>
    <group name="buildmaster" notification="failed"/>
   </groups>
   <converters>
    <regexConverter find="DOMAIN\\" replace="" />
    <regexConverter find="$" replace="@yourcompany.com" />
   </converters>
   <modifierNotificationTypes>
    <NotificationType>Failed</NotificationType>
   </modifierNotificationTypes>
  </email>
Alex
Hi alex,Thanks a lot for the effort taken in giving this input.Infact now i got to know the actual problem.When i execute my nant from the command line which invokes my IDE,My IDe executes and there are compilation errors thrown.But the last of execution ,i can see as BUILD SUCCESSFULL instead of BUILD failure.So this doesnt sets the error level and i get successfull all the time.So when this is integrated with my ccnet,i always get BUILD successfull even when compilation errors are present.
Maddy