[Qa-jenkins-scm] [jenkins.debian.net] 01/01: improve detection of problems
Holger Levsen
holger at layer-acht.org
Mon Nov 21 14:12:37 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 064c711105a16fdf3982ada59b425132123dff80
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Nov 21 15:12:31 2016 +0100
improve detection of problems
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
deploy_everywhere | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/deploy_everywhere b/deploy_everywhere
index 8d790ad..5cfa044 100755
--- a/deploy_everywhere
+++ b/deploy_everywhere
@@ -177,14 +177,14 @@ 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)
- TAIL=$(tail -1 $LOG.$i)
+ TAIL=$(tail -1 $LOG.$i 2>/dev/null)
if [ "$i" = "root at jenkins.debian.net" ] ; then
if ! ( [[ "$TAIL" =~ "__$HNAME1=ok__" ]] || [[ "$TAIL" =~ "__$HNAME2=ok__" ]] || [[ "$TAIL" =~ "__reallyreally=ok__" ]] || [[ "$TAIL" =~ "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." ]] ) ; then
echo "Problems on $i:"
fi
cat $LOG.$i
rm $LOG.$i $LOG.$i.done > /dev/null
- elif [[ "$TAIL" =~ "__$HNAME1=ok__" ]] || [[ "$TAIL" =~ "__$HNAME2=ok__" ]] || [[ "$TAIL" =~ "__reallyreally=ok__" ]] || [[ "$TAIL" =~ "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." ]] ; then
+ elif [[ "$TAIL" =~ "__$HNAME1=ok__" ]] || [[ "$TAIL" =~ "__$HNAME2=ok__" ]] || [[ "$TAIL" =~ "__reallyreally=ok__" ]] || [[ "$TAIL" =~ "0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded." ]] || [ ! -f $LOG.$i ] ; then
rm $LOG.$i $LOG.$i.done > /dev/null
else
echo "Problems on $i: $TAIL"
--
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