[Dart] log for email notification
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Feb 12 02:47:01 EST 2008
Salut Sylvain,
On Feb 7, 2008 7:57 PM, Sylvain Jaume <sylvainjaume at gmail.com> wrote:
> I tried to set up email notification for my project.
> I added a DartConfig.cmake to my project:
What's a DartConfig.cmake file ? If you are doing a INCLUDE(CTest),
you should have instead a CTestConfig.cmake. It can be simple as that:
SET (CTEST_PROJECT_NAME "gdcm")
SET (CTEST_NIGHTLY_START_METHOD "21:00:00 CEST")
SET (CTEST_DROP_METHOD "xmlrpc")
SET (CTEST_DROP_SITE "http://dash:8081")
SET (CTEST_DROP_LOCATION "zorglub")
SET (CTEST_COMPRESSION_SUBMISSION ON)
> # Continuous email delivery variables
> SET(CONTINUOUS_FROM "my_email_address")
> SET(SMTP_MAILHOST "my_smtp_server")
> SET(CONTINUOUS_MONITOR_LIST "my_email_address")
> SET(CONTINUOUS_BASE_URL "${PROJECT_URL}/Testing")
>
> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_FAILURES ON)
> SET(DELIVER_BROKEN_BUILD_EMAIL "Continuous Nightly")
> SET(EMAIL_FROM "my_email_address")
> SET(DARTBOARD_BASE_URL "${PROJECT_URL}/Testing")
>
> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_CONFIGURE_FAILURES 1)
> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_BUILD_ERRORS 1)
> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_BUILD_WARNINGS 1)
> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_NOT_RUNS 1)
> SET(DELIVER_BROKEN_BUILD_EMAIL_WITH_TEST_FAILURES 1)
I do not believe the email can be configured from the client side. I
believe this is from the Dart vintage (or whatever the name is).
> In Project.xml I added:
>
> <Property name="mail.host">my_smtp_server</Property>
> <Property name="mail.port">25</Property>
> <Property name="mail.from">my_email_address</Property>
> <Property name="mail.transport.protocol">smtp</Property>
Let's do it simple:
1. Is you user allowed to post mail ?
2. What happen when you do:
$ mail -s test sylvain.jaume AT gmail.com
> just a test
> .
> Where my_smtp_server is the smtp server I use with another build system and
> it works.
>
> Submissions are fine but I receive no email when there is a build error.
> Is there a log I can check for email notification error?
Depends on your agent. You should definitely post to the right Ml to
get a better answer.
I am using postfix, I had to edit: /etc/postfix/main.cf (dont forget postalias)
As for mail stuff, on unix, this is typically: /var/log/mail.* (do ls
-ltr to check which one was last edited).
Good luck,
--
Mathieu
More information about the Dart
mailing list