Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

soumya ravindranath
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic