comparison demonotification.cfg @ 99:7888fe374e11

Add support for notification mails in case of build errors This involves a new status field notification_mail to keep track of whether a notification has been sent for a particular build attempt and two programs to list the pending notifications and to send the pending notifications (similar to how the static web pages are published) as well as the corresponding configuration files.
author Bernhard Herzog <bh@intevation.de>
date Tue, 19 Feb 2008 19:19:23 +0000
parents
children f72530307eea
comparison
equal deleted inserted replaced
98:f7b9c7113c46 99:7888fe374e11
1 # Demo config file for sendnotificationmails.py. The default config
2 # file used by sendnotificationmails.py is notification.cfg, so to use
3 # this file as the basis for your configuration, copy or rename this
4 # file and adapt it to your needs.
5
6 [notification]
7
8 # Username and host on which the treepackager runs.
9 # sendnotificationmails.py has to be able to connect to that host as the
10 # builduser via ssh without knowning the password. This is best
11 # achieved with the ssh-agent.
12 build_user: builder
13 build_host: localhost
14
15 # the program to run on build_host to list the pending notifications
16 # currently sendnotificationmails.py assumes that the default
17 # configuration for that program works.
18 build_listpending: ~/treepkg/bin/listpendingnotifications.py
19
20
21 # Template of the notification email. The expanded text is sent as the
22 # entire email. This means that the file should contain both the
23 # headers and the body of the email. The recipients of the mail are
24 # taken from the expanded template's To: and CC: headers. The smtp
25 # envelope sender is taken from the From: header.
26 #
27 # Substitutions have the form %(NAME)s where NAME can be one of these:
28 #
29 # track The name of the package track
30 #
31 # revision The revision number for which the notification has to be sent
32 #
33 #
34 notification_template: notification_template.txt
35
36 # host/port of the smtp server to use
37 smtp_host: localhost
38 smtp_port: 25
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)