[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: shorten irc message
Holger Levsen
gitlab at salsa.debian.org
Sat Sep 29 12:31:02 BST 2018
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
ba3eaa65 by Holger Levsen at 2018-09-29T11:30:52Z
reproducible: shorten irc message
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -117,6 +117,7 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
#
echo "$(date -u) - Looking for unhealthy nodes."
cd ~/jobs
+ SICK=""
for i in reproducible_node_health_check_* ; do
NODE_ALIAS=$(echo $i | cut -d '_' -f6)
NODE_ARCH=$(echo $i | cut -d '_' -f5)
@@ -147,14 +148,21 @@ if [ "$HOSTNAME" = "$MAINNODE" ] ; then
else
echo $NODE >> ~/offline_nodes
echo " so $NODE has (temporarily) been marked as offline now."
- irc_message reproducible-builds "$NODE has health problems and has temporarily been marked as offline. To make this permanent, edit jenkins-home/offline_nodes in git."
-
+ SICK="$SICK $NODE"
fi
else
echo "$NODE is doing fine, good."
fi
cd ../..
done
+ if [ -n "$SICK" ] ; then
+ if echo "$SICK" | grep -q ' ' 2>/dev/null ; then
+ MESSAGE="$NODE have health problems and have temporarily been marked as offline."
+ else
+ MESSAGE="$NODE has health problems and has temporarily been marked as offline."
+ fi
+ irc_message reproducible-builds "$MESSAGE To make this permanent, edit jenkins-home/offline_nodes in git."
+ fi
fi
echo "$(date -u) - updating the schroots and pbuilder now..."
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/ba3eaa65eb6aaaadce055c6b1a45d2a62b8b28bb
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/ba3eaa65eb6aaaadce055c6b1a45d2a62b8b28bb
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/20180929/097e4946/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list