File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes CruiseControl sends mail only from inside <onsuccess>, why ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "CruiseControl sends mail only from inside <onsuccess>, why ?" Watch "CruiseControl sends mail only from inside <onsuccess>, why ?" New topic
Author

CruiseControl sends mail only from inside <onsuccess>, why ?

soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300
Hi,

I am not able to figure out CruiseControl's working method. Any hint about where I could look would be a great help, please.

We have CruiseControl set up for the java project, that fetches from subversion and builds fine. The problem is with sending mails.

There is a project where the build fails always, currently. The batch file that is called from CruiseControl to build the project, not only sets an errorstring but also returns an error code. At the command prompt, I see that these are recognized and CruiseControl reports 'build failed'. However, when I put in the <email> settings directly under <publishers> or inside <onfailure> it doesn't send any mail. Instead, if I put the <email> under <onsuccess>, it sends it. Why does this happen ?

Thanks in advance,
Soumya
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CruiseControl sends mail only from inside <onsuccess>, why ?