summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_node_health_check.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-06-28 11:43:40 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-28 11:43:40 +0200
commit77c6891eb21c8fa5cbffe22f75d9e54fbe10b797 (patch)
tree1de4ff9f41718635890cc0ef79cb9516d4a21fc6 /bin/reproducible_node_health_check.sh
parent1542df26bd0d4ac34df04528bb6cb4eda8388002 (diff)
downloadjenkins.debian.net-77c6891eb21c8fa5cbffe22f75d9e54fbe10b797.tar.xz
reproducible Debian: check for (known) zombie jobs and report them
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_node_health_check.sh')
-rwxr-xr-xbin/reproducible_node_health_check.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh
index 189bc984..16466822 100755
--- a/bin/reproducible_node_health_check.sh
+++ b/bin/reproducible_node_health_check.sh
@@ -137,6 +137,25 @@ if [ -z "$HAVEGED" ] ; then
fi
#
+# checks only for the main node
+#
+if [ "$HOSTNAME" = "$MAINNODE" ] ; then
+ #
+ # sometimes deleted jobs come back as zombies
+ # and we dont know why and when that happens,
+ # so just report those zombies here.
+ #
+ ZOMBIES=$(ls -1d var/lib/jenkins/jobs/ | egrep '(reproducible_builder_amd64|reproducible_builder_i386|reproducible_builder_armhf|reproducible_builder_arm64|chroot-installation_wheezy)')
+ if [ ! -z "$ZOMBIES" ] ; then
+ echo "Warning, rise of the jenkins job zombies has started again, these jobs should not exist:"
+ echo -e "$ZOMBIES"
+ DIRTY=TRUE
+ echo
+ fi
+fi
+
+
+#
# finally
#
if ! $DIRTY ; then