[Qa-jenkins-scm] [jenkins.debian.net] 01/02: YOLO: improve irc message

Holger Levsen holger at layer-acht.org
Wed Nov 23 14:11:50 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 699735364f358cf85181ccc31573e184dcfaf75c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Nov 23 15:10:35 2016 +0100

    YOLO: improve irc message
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/email2irc.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index 1da5f41..0eaebb9 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -113,8 +113,8 @@ if [ "$VALID_MAIL" = "true" ] ; then
 	# only notify if there is a channel to notify
 	if [ ! -z $CHANNEL ] ; then
 		# log message
-		echo "#$CHANNEL: $SUBJECT. $MY_LINE" >> $LOGFILE
-		MESSAGE="$SUBJECT. $MY_LINE"
+		MESSAGE="$(echo $SUBJECT | cut -d ':' -f1) $(echo $MY_LINE|sed -s 's#Changes:##g') "
+		echo "#$CHANNEL: $MESSAGE" >> $LOGFILE
 		# notify kgb
 		kgb-client --conf /srv/jenkins/kgb/$CHANNEL.conf --relay-msg "$MESSAGE" && echo "kgb informed successfully." >> $LOGFILE
 		echo >> $LOGFILE

-- 
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