#!/bin/bash
# Copyright © 2015-2016 Holger Levsen This page is still under development. Please provide feedback, which other information (be it from munin or elsewhere) should be displayed and how this page should be split further, eg, the graphs could all be on another page and/or we should split this page into four for the four architectures being tested… "
for ARCH in ${ARCHS} ; do
write_page "$ARCH nodes
"
write_page ""
write_page "
"
done
write_page " "
for NODE in jenkins $BUILD_NODES ; do
if [ -z "$(echo $NODE | grep $ARCH || true)" ] && [ "$NODE" != "jenkins" ] ; then
continue
elif [ "$NODE" = "jenkins" ] && [ "$ARCH" != "amd64" ] ; then
continue
fi
if [ "$NODE" = "jenkins" ] ; then
JENKINS_NODENAME=jenkins
NODE="jenkins.debian.net"
else
case $ARCH in
amd64|i386) JENKINS_NODENAME=$(echo $NODE | cut -d "-" -f1-2|sed 's#-build##' ) ;;
arm64) JENKINS_NODENAME=$(echo $NODE | cut -d "-" -f1-2|sed 's#-sled##' ) ;;
armhf) JENKINS_NODENAME=$(echo $NODE | cut -d "-" -f1) ;;
esac
fi
write_page "Name maintenance worker.log links "
for SUITE in ${SUITES} ; do
if [ "$SUITE" = "experimental" ] ; then
continue
fi
write_page "schroot setup $SUITE "
done
for SUITE in ${SUITES} ; do
write_page "pbuilder setup $SUITE "
done
write_page " "
done
write_page "$JENKINS_NODENAME "
URL="https://jenkins.debian.net/view/reproducible/view/Node_maintenance/job/reproducible_maintenance_${ARCH}_${JENKINS_NODENAME}"
BADGE="$URL/badge/icon"
write_page ""
if [ "$JENKINS_NODENAME" = "jenkins" ] ; then
write_page " "
else
write_page " "
SHORTNAME=$(echo $NODE | cut -d '.' -f1)
for WORKER in $(grep "${ARCH}_" /srv/jenkins/bin/reproducible_build_service.sh | grep -v \# |grep $SHORTNAME | cut -d ')' -f1) ; do
write_page ""
write_page "$(echo $WORKER |cut -d '_' -f2) "
done
write_page " "
fi
for SUITE in ${SUITES} ; do
if [ "$SUITE" = "experimental" ] ; then
continue
fi
URL="https://jenkins.debian.net/view/reproducible/view/Debian_setup_${ARCH}/job/reproducible_setup_schroot_${SUITE}_${ARCH}_${JENKINS_NODENAME}"
BADGE="$URL/badge/icon"
write_page ""
done
for SUITE in ${SUITES} ; do
if [ "$JENKINS_NODENAME" = "jenkins" ] ; then
write_page " "
else
URL="https://jenkins.debian.net/view/reproducible/view/Debian_setup_${ARCH}/job/reproducible_setup_pbuilder_${SUITE}_${ARCH}_${JENKINS_NODENAME}"
BADGE="$URL/badge/icon"
write_page " "
fi
done
write_page "
This page is still under development. Please provide feedback, which other information (be it from munin or elsewhere) should be displayed and how this page should be split further, eg, the graphs could all be on another page and/or we should split this page into four for the four architectures being tested…
" # FIXME: Also either $0 and its job needs to be renamed to include 'html' or the code needs to be moved elsewhere write_page "" for ARCH in ${ARCHS} ; do write_page "
Name | " write_page " | |||||
---|---|---|---|---|---|---|
$JENKINS_NODENAME | " for GRAPH in jenkins_reproducible_builds cpu memory df swap load ; do if [ "$JENKINS_NODENAME" = "jenkins" ] && [ "$GRAPH" = "jenkins_reproducible_builds" ] ; then write_page "" else write_page " | " write_page " | " fi done write_page "