[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible Debian: notify about new (regular) schedulings via mail instead of irc

Holger Levsen holger at layer-acht.org
Mon Oct 10 17:01:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 396a55ce4d8190e94b435e9e809ae6e75df1e92c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Oct 10 18:50:37 2016 +0200

    reproducible Debian: notify about new (regular) schedulings via mail instead of irc
---
 bin/reproducible_scheduler.py | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 1b1b355..7eeaf2e 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 at jenkins.debian.net'
+        msg['To'] = 'qa-jenkins-scm at lists.alioth.debian.org'
+        s = smtplib.SMTP('localhost')
+        s.sendmail(me, [you], msg.as_string())
+        s.quit()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list