summaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-05-09 17:05:10 +0200
committerHolger Levsen <holger@layer-acht.org>2016-05-09 17:05:10 +0200
commit3dd07d39a46f898c370416e46a6fa7d55af75299 (patch)
tree0eeeaa1d5e34014da0393343139e09848b5dbd2c /hosts
parent4d0315d978619ac761a3f9f1ae6d157ffff5a010 (diff)
downloadjenkins.debian.net-3dd07d39a46f898c370416e46a6fa7d55af75299.tar.xz
notify #debian-qa and #debian-reproducible on jenkins reboots
Diffstat (limited to 'hosts')
-rwxr-xr-xhosts/jenkins/etc/rc.local7
1 files changed, 5 insertions, 2 deletions
diff --git a/hosts/jenkins/etc/rc.local b/hosts/jenkins/etc/rc.local
index 1c4ece10..c2838549 100755
--- a/hosts/jenkins/etc/rc.local
+++ b/hosts/jenkins/etc/rc.local
@@ -11,6 +11,9 @@
#
# By default this script does nothing.
-echo "$(date -u) - system was rebooted" | mail -s "$(hostname -f) rebooted" root
-
+MESSAGE="$(hostname -f) rebooted"
+echo "$(date -u) - system was rebooted" | mail -s "$MESSAGE" root
+for channel in debian-qa debian-reproducible ; do
+ kgb-client --conf /srv/jenkins/kgb/$channel.conf --relay-msg "$MESSAGE"
+done
exit 0