[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: correctly recognize 0 builds per day
Holger Levsen
holger at layer-acht.org
Mon Jun 12 13:22:50 UTC 2017
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 c58df62c75de8172ee2e7a311ade794e3b8a8772
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Jun 12 15:22:42 2017 +0200
reproducible Debian: correctly recognize 0 builds per day
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_nodes_info.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/bin/reproducible_nodes_info.sh b/bin/reproducible_nodes_info.sh
index 034b0b0..2bb686c 100755
--- a/bin/reproducible_nodes_info.sh
+++ b/bin/reproducible_nodes_info.sh
@@ -64,6 +64,7 @@ for i in $BUILD_NODES ; do
echo "$l builds/day ($j/$k) on $i" >> $TMPFILE2
DATE=$(date '+%Y-%m-%d %H:%M' -d "-1 days")
m=$(query_db "SELECT count(build_date) FROM stats_build AS r WHERE ( r.node1='$i' OR r.node2='$i' ) AND r.build_date > '$DATE' " 2>/dev/null)
+ if [ "$m" = "" ] ; then m=0 ; fi
echo "$m builds in the last 24h on $i" >> $TMPFILE3
done
rm $TMPFILE1 >/dev/null
--
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