[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible: also provide overview of monthly munin graphs
Holger Levsen
gitlab at salsa.debian.org
Fri Sep 28 23:48:53 BST 2018
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
4a8a2e23 by Holger Levsen at 2018-09-28T22:48:38Z
reproducible: also provide overview of monthly munin graphs
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
2 changed files:
- bin/reproducible_html_nodes_info.sh
- mustache-templates/reproducible/main_navigation.mustache
Changes:
=====================================
bin/reproducible_html_nodes_info.sh
=====================================
@@ -143,9 +143,9 @@ build_nodes_health_page() {
build_graph_overview_pages() {
#
- # munin nodes daily/weekly pages
+ # munin nodes daily/weekly/monthly pages
#
- for TYPE in daily weekly ; do
+ for TYPE in daily weekly monthly ; do
VIEW=nodes_${TYPE}_graphs
PAGE=index_${VIEW}.html
ARCH=amd64
@@ -186,11 +186,11 @@ build_graph_overview_pages() {
esac
fi
write_page "<td><a href='https://jenkins.debian.net/munin/debian.net/$NODE/$GRAPH.html'>"
- if [ "$TYPE" = "daily" ] ; then
- IMG=day.png
- else
- IMG=week.png
- fi
+ case "$TYPE" in
+ daily) IMG=day.png ;;
+ weekly) IMG=week.png ;;
+ monthy) IMG=month.png ;;
+ esac
write_page "<img src='https://jenkins.debian.net/munin/debian.net/$NODE/${GRAPH}-${IMG}' width='150' /></a></td>"
done
write_page "</tr>"
=====================================
mustache-templates/reproducible/main_navigation.mustache
=====================================
@@ -191,6 +191,9 @@
<li {{#nodes_weekly_graphs}}class='active'{{/nodes_weekly_graphs}}>
<a href="/debian/index_nodes_weekly_graphs.html">weekly graphs</a>
</li>
+ <li {{#nodes_monthly_graphs}}class='active'{{/nodes_monthly_graphs}}>
+ <a href="/debian/index_nodes_monthly_graphs.html">monthly graphs</a>
+ </li>
</ul></li>
</ul></li>
</ul>
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/4a8a2e23adc9f74b61ccc315c2ea8f527cd315a8
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/4a8a2e23adc9f74b61ccc315c2ea8f527cd315a8
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/20180928/0f9e1e33/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list