[Qa-jenkins-scm] [jenkins.debian.net] 01/02: give summary of hosts with deployment problems

Holger Levsen holger at layer-acht.org
Mon Nov 21 13:53:19 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 117cf4a18aa98b67b2086d7b184383c55ee6f8d8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Nov 21 14:50:38 2016 +0100

    give summary of hosts with deployment problems
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 deploy_everywhere | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/deploy_everywhere b/deploy_everywhere
index d75e5dc..8d790ad 100755
--- a/deploy_everywhere
+++ b/deploy_everywhere
@@ -173,6 +173,7 @@ for i in $HOSTS ; do
 done
 echo
 
+PROBLEMS=""
 for i in $HOSTS ; do
 	HNAME1=$(echo $i | cut -d "@" -f2 | cut -d "." -f1|cut -d "-" -f1)	# pb nodes (h01ger)
 	HNAME2=$(echo $i | cut -d "@" -f2 | cut -d "." -f1)			# non -armhf ones (vagrant)
@@ -187,6 +188,11 @@ for i in $HOSTS ; do
 		rm $LOG.$i $LOG.$i.done > /dev/null
 	else
 		echo "Problems on $i: $TAIL"
+		if [ -z "$PROBLEMS" ] ; then
+			PROBLEMS=" $i"
+		else
+			PROBLEMS=" $i\n$PROBLEMS"
+		fi
 		get_arch_color $i
 		xterm -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "less +G $LOG.$i ; rm $LOG.$i $LOG.$i.done" &
 	fi
@@ -194,6 +200,11 @@ done
 echo
 
 echo "$(echo $HOSTS | sed -s "s# #\n#g" | wc -l) hosts updated."
+if [ ! -z "$PROBLEMS" ] ; then
+	echo "Problems on:"
+	echo -e "$PROBLEMS"
+	echo
+fi
 END=$(date +'%s')
 DURATION=$(( $END - $START ))
 HOUR=$(echo "$DURATION/3600"|bc)

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