summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-23 15:40:23 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-23 15:40:23 +0100
commitc156aa26b3b6b918b7bf0fe8d83a6f806a2bf266 (patch)
tree7ca7a09271a1447bed903419c01f436bab8b532d /bin
parentd0a55c2a7a55412f61bce6132038baac7678f359 (diff)
downloadjenkins.debian.net-c156aa26b3b6b918b7bf0fe8d83a6f806a2bf266.tar.xz
YOLO: fix regex
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/email2irc.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/email2irc.sh b/bin/email2irc.sh
index df8a6f90..40287bde 100755
--- a/bin/email2irc.sh
+++ b/bin/email2irc.sh
@@ -117,9 +117,8 @@ if [ "$VALID_MAIL" = "true" ] ; then
MESSAGE="$(echo $MESSAGE | sed -s 's#Changes:##') "
MESSAGE="$(echo $MESSAGE | sed -s 's#/console$##') "
MESSAGE="$(echo $MESSAGE | sed -s 's# See ##') "
- MESSAGE="$(echo $MESSAGE | sed -s 's# in Jenkins ##') "
- MESSAGE="$(echo $MESSAGE | sed -s 's#Failure #Failed #') "
- MESSAGE="$(echo $MESSAGE | sed -s 's#Build failed #Failed #') "
+ MESSAGE="$(echo $MESSAGE | sed -s 's#^Failure#Failed #') "
+ MESSAGE="$(echo $MESSAGE | sed -s 's#^Build failed in Jenkins#Failed #') "
# log message
echo "Notified #$CHANNEL with $MESSAGE" >> $LOGFILE
# notify kgb