>to add a PASSED/FAILED message to the
>email subject line.  It reports correctly if a test fails.

OK, so the build process does exit with non-zero code, and CC.rb does know
that the build has failed.
It also should put "passed" or "failed" into the subject of the email. This
happens at lib/builder_plugins/email_notifier.rb, lines 40 and 46.

>How can I capture the errors that occur in
>task :cruise =>['db:migrate', 'db:test:purge',
>'db:test:clone_structure']
>so as to put the correct message on the email subject line?

Assuming that they do write something out into the stdout/stderr, you
should still see these failures in the build log section of the dashboard
page for that build. To add them to the email, you'd probably have to
rescue the errors (in the Rake build) and write them out to stderr in such
a way that can then be parsed. Then parse them out of build.output (which
is just the stderr+stdout of the build process). The build object is
available to all event handlers in the EmailNotifier (that would be
build_fixed() and build_finished() methods).

--
Alex

_______________________________________________
Cruisecontrolrb-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to