summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-10-10 18:50:37 +0200
committerHolger Levsen <holger@layer-acht.org>2016-10-10 18:50:37 +0200
commit396a55ce4d8190e94b435e9e809ae6e75df1e92c (patch)
treee606cc257894310379896951b5e5732bb6266657
parent56ec438bda62bda6464fa4c91d733c3a6a3bf436 (diff)
downloadjenkins.debian.net-396a55ce4d8190e94b435e9e809ae6e75df1e92c.tar.xz
reproducible Debian: notify about new (regular) schedulings via mail instead of irc
-rwxr-xr-xbin/reproducible_scheduler.py12
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()