[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: add new page: job health overview

Holger Levsen gitlab at salsa.debian.org
Tue Sep 25 14:34:05 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
9b48b877 by Holger Levsen at 2018-09-25T13:33:48Z
reproducible: add new page: job health overview

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


3 changed files:

- bin/reproducible_common.sh
- bin/reproducible_html_nodes_info.sh
- mustache-templates/reproducible/main_navigation.mustache


Changes:

=====================================
bin/reproducible_common.sh
=====================================
@@ -222,6 +222,7 @@ write_page_header() {
 		|| [ "$1" = "suite_arch_stats" ] \
 		|| [ "$1" = "bugs" ] \
 		|| [ "$1" = "nodes_health" ] \
+		|| [ "$1" = "job_health" ] \
 		|| [ "$1" = "nodes_weekly_graphs" ] \
 		|| [ "$1" = "nodes_daily_graphs" ] ; then
 		displayed_page="\"$1\": \"true\""


=====================================
bin/reproducible_html_nodes_info.sh
=====================================
@@ -15,7 +15,7 @@ common_init "$@"
 . /srv/jenkins/bin/reproducible_common.sh
 
 #
-# build static webpages
+# build node health page
 #
 VIEW=nodes_health
 PAGE=index_${VIEW}.html
@@ -139,6 +139,9 @@ write_page "</p>"
 write_page_footer
 publish_page debian
 
+#
+# munin nodes daily/weekly pages
+#
 for TYPE in daily weekly ; do
 	VIEW=nodes_${TYPE}_graphs
 	PAGE=index_${VIEW}.html
@@ -197,3 +200,33 @@ for TYPE in daily weekly ; do
 	publish_page debian
 done
 
+#
+# job health page
+#
+VIEW=job_health
+PAGE=index_${VIEW}.html
+ARCH=amd64
+SUITE=unstable
+echo "$(date -u) - starting to write $PAGE page."
+write_page_header $VIEW "Job health overview"
+write_page "<p style=\"clear:both;\">"
+cd ~/jobs
+for CATEGORY in $(reproducible_*|grep -v maintenance | grep -v node_health|grep -v setup_pbuilder|grep -v setup_schroot|cut -d _ -f2|sort -u) ; do
+	write_page "<h3>reproducible_$CATEGORY jobs</h3>"
+	write_page "<table><tr>"
+	for JOB in $(ls -1d reproducible_$CATEGORY* |grep -v maintenance | grep -v node_health|grep -v setup_pbuilder|grep -v setup_schroot) ; do
+		write_page "<th>$JOB</th>"
+	done
+	write_page "</tr><tr>"
+	for JOB in $(ls -1d reproducible_$CATEGORY* |grep -v maintenance | grep -v node_health|grep -v setup_pbuilder|grep -v setup_schroot) ; do
+		URL="https://jenkins.debian.net/job/$JOB"
+		BADGE="$URL/badge/icon"
+		write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
+	done
+	write_page "</tr>"
+done
+write_page "</table>"
+write_page "</p>"
+write_page_footer
+publish_page debian
+


=====================================
mustache-templates/reproducible/main_navigation.mustache
=====================================
@@ -178,9 +178,12 @@
     <li {{#performance}}class='active'{{/performance}}>
       <a href="/debian/index_performance.html">Performance stats</a>
     </li>
-    <li><ul>Nodes health
+    <li><ul>Health monitoring
       <li {{#nodes_health}}class='active'{{/nodes_health}}>
-        <a href="/debian/index_nodes_health.html">overview</a>
+        <a href="/debian/index_nodes_health.html">node overview</a>
+      </li>
+      <li {{#job_health}}class='active'{{/job_health}}>
+        <a href="/debian/index_job_health.html">job overview</a>
       </li>
       <li {{#nodes_daily_graphs}}class='active'{{/nodes_daily_graphs}}>
         <a href="/debian/index_nodes_daily_graphs.html">daily graphs</a>



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/9b48b877e55f76cb89b56e6e6dc4d9bf324ba1dd

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/9b48b877e55f76cb89b56e6e6dc4d9bf324ba1dd
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/20180925/542268e9/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list