[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: update_jdn: dont show known-offline nodes are problems
Holger Levsen
gitlab at salsa.debian.org
Mon Aug 13 18:08:46 BST 2018
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
2e46ce82 by Holger Levsen at 2018-08-13T12:10:35Z
reproducible Debian: update_jdn: dont show known-offline nodes are problems
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- deploy_jdn
Changes:
=====================================
deploy_jdn
=====================================
--- a/deploy_jdn
+++ b/deploy_jdn
@@ -1,7 +1,7 @@
#!/bin/bash
# vim: set noexpandtab:
#
-# Copyright 2014-2017 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2018 Holger Levsen <holger at layer-acht.org>
# © 2018 Mattia Rizzolo <mattia at debian.org>
#
# released under the GPLv=2
@@ -222,6 +222,8 @@ for i in "${HOSTS[@]}" ; do
done
echo
+JENKINS_OFFLINE_LIST="$(basename $0)/jenkins-home/offline_nodes"
+OFFLINE=""
PROBLEMS=""
for i in "${HOSTS[@]}" ; do
HNAME1=$(echo $i | cut -d "@" -f2 | cut -d "." -f1|cut -d "-" -f1) # pb nodes (h01ger)
@@ -237,7 +239,15 @@ for i in "${HOSTS[@]}" ; do
rm $LOG.$i $LOG.$i.done > /dev/null
else
echo "Problems on $i: $TAIL"
- if [ -z "$PROBLEMS" ] ; then
+ if [ -f "$JENKINS_OFFLINE_LIST" ]; then
+ if grep -q "$i" "$JENKINS_OFFLINE_LIST"; then
+ if [ -z "$OFFLINE" ] ; then
+ OFFLINE=" $i"
+ else
+ OFFLINE=" $i\n$OFFLINE"
+ fi
+ fi
+ elif [ -z "$PROBLEMS" ] ; then
PROBLEMS=" $i"
else
PROBLEMS=" $i\n$PROBLEMS"
@@ -254,6 +264,11 @@ if [ ! -z "$PROBLEMS" ] ; then
echo -e "$PROBLEMS"
echo
fi
+if [ ! -z "$OFFLINE" ] ; then
+ echo "Offline nodes with unsurprising problems encountered:"
+ echo -e "$OFFLINE"
+ echo
+fi
END=$(date +'%s')
DURATION=$(( $END - $START ))
HOUR=$(echo "$DURATION/3600"|bc)
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/2e46ce82a6fca08c130e60369da415b664108d6b
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/2e46ce82a6fca08c130e60369da415b664108d6b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20180813/d60cf603/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list