From 2d0d856dfab4b2225d8bc3f3b5416dea339f9eb1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 27 Apr 2017 14:55:18 +0200 Subject: reproducible Debian dashboard: count service jobs not jenkins jobs Signed-off-by: Holger Levsen --- bin/reproducible_build_service.sh | 1 - bin/reproducible_html_dashboard.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh index 390db7e3..17d736f1 100755 --- a/bin/reproducible_build_service.sh +++ b/bin/reproducible_build_service.sh @@ -264,7 +264,6 @@ done # * maintenance job might want to: # - check for running builds using systemctl show & ps fax # - check if at least one build is running on a build node -# * dashboard jobs need to count for running jobs in this script… # * drop jobs from repro.yaml # * use ExecStop to kill remote builds on shutdown # - remove cleanup_nodes.sh once this works diff --git a/bin/reproducible_html_dashboard.sh b/bin/reproducible_html_dashboard.sh index 7f4b0804..53f78d87 100755 --- a/bin/reproducible_html_dashboard.sh +++ b/bin/reproducible_html_dashboard.sh @@ -338,7 +338,7 @@ write_build_performance_stats() { done write_page "Build jobs configured" for ARCH in ${ARCHS} ; do - write_page "$(ls /var/lib/jenkins/jobs/reproducible_builder_* -1d|grep -c $ARCH)" + write_page "$(grep "MAX=" /srv/jenkins/bin/reproducible_build_service.sh |grep $ARCH|cut -d "=" -f2-|cut -d " " -f1)" done write_page "Build jobs currently running" for ARCH in ${ARCHS} ; do -- cgit v1.2.3-70-g09d2