[Qa-jenkins-scm] [jenkins.debian.net] 01/01: YOLO: further improve	message format
    Holger Levsen 
    holger at layer-acht.org
       
    Wed Nov 23 14:25:29 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 30877cfbb7ed1d9427d16a5e23594ce1ef909a3a
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed Nov 23 15:25:22 2016 +0100
    YOLO: further improve message format
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/email2irc.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index a2bb871..20dc8f5 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -112,8 +112,13 @@ if [ "$VALID_MAIL" = "true" ] ; then
 	echo "My line: $MY_LINE" >> $LOGFILE
 	# only notify if there is a channel to notify
 	if [ ! -z $CHANNEL ] ; then
-		# log message
+		# format message
 		MESSAGE="$(echo $SUBJECT | cut -d ':' -f1) $(echo $MY_LINE|sed -s 's#Changes:##g') "
+		MESSAGE="$(echo $MESSAGE | sed -s 's# See ##g') "
+		MESSAGE="$(echo $MESSAGE | sed -s 's# in Jenkins ##g') "
+		MESSAGE="$(echo $MESSAGE | sed -s 's#Failure #Failed #g') "
+		MESSAGE="$(echo $MESSAGE | sed -s 's#Build failed #Failed #g') "
+		# log message
 		echo "Notified #$CHANNEL with $MESSAGE" >> $LOGFILE
 		# notify kgb
 		kgb-client --conf /srv/jenkins/kgb/$CHANNEL.conf --relay-msg "$MESSAGE" && echo "kgb informed successfully." >> $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