diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-10-10 18:50:37 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-10-10 18:50:37 +0200 |
commit | 396a55ce4d8190e94b435e9e809ae6e75df1e92c (patch) | |
tree | e606cc257894310379896951b5e5732bb6266657 /bin | |
parent | 56ec438bda62bda6464fa4c91d733c3a6a3bf436 (diff) | |
download | jenkins.debian.net-396a55ce4d8190e94b435e9e809ae6e75df1e92c.tar.xz |
reproducible Debian: notify about new (regular) schedulings via mail instead of irc
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_scheduler.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 1b1b3555..7eeaf2e8 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -15,10 +15,12 @@ import lzma import deb822 import aptsources.sourceslist import random +import smtplib from subprocess import call from apt_pkg import version_compare from urllib.request import urlopen from sqlalchemy import sql +from email.mime.text import MIMEText from reproducible_common import * from reproducible_html_live_status import generate_schedule @@ -689,4 +691,12 @@ if __name__ == '__main__': # build the kgb message text message = 'Scheduled in ' + '+'.join(SUITES) + ':' + message log.info(message) - irc_msg(message, channel='debian-reproducible-changes') + # irc_msg(message, channel='debian-reproducible-changes') + # send mail instead of notifying via irc, less intrusive + msg = MIMEText(message) + msg['Subject'] = 'packages scheduled for reproducible Debian' + msg['From'] = 'jenkins@jenkins.debian.net' + msg['To'] = 'qa-jenkins-scm@lists.alioth.debian.org' + s = smtplib.SMTP('localhost') + s.sendmail(me, [you], msg.as_string()) + s.quit() |