diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-15 15:27:23 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-15 15:27:23 +0200 |
commit | 713a0d10d3a0dd612962080054fea52a3a43725f (patch) | |
tree | b8580a99b8d1eeabde84fca9935a3673b135faa8 | |
parent | 958558e0a0753b7f99ceedc632b635a29a6eae7a (diff) | |
download | jenkins.debian.net-713a0d10d3a0dd612962080054fea52a3a43725f.tar.xz |
reproducible: also include profitbricks 3+4+7 in health overview
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_html_nodes_info.sh | 68 |
1 files changed, 45 insertions, 23 deletions
diff --git a/bin/reproducible_html_nodes_info.sh b/bin/reproducible_html_nodes_info.sh index a98a484e..7f7d6d0b 100755 --- a/bin/reproducible_html_nodes_info.sh +++ b/bin/reproducible_html_nodes_info.sh @@ -30,7 +30,7 @@ write_page "<p style=\"clear:both;\">" for ARCH in ${ARCHS} ; do write_page "<h3>$ARCH nodes</h3>" write_page "<table>" - write_page "<tr><th>Name</th><th>health check</th><th>maintenance</th><th>worker.log links</th>" + write_page "<tr><th>Name</th><th>health check</th><th>maintenance</th><th>Debian worker.log links</th>" for SUITE in ${SUITES} ; do write_page "<th>schroot setup $SUITE</th>" done @@ -38,7 +38,17 @@ for ARCH in ${ARCHS} ; do write_page "<th>pbuilder setup $SUITE</th>" done write_page "</tr>" - for NODE in jenkins $BUILD_NODES ; do + # the following for-loop is a hack to insert nodes which are not part of the + # Debian Reproducible Builds node network but are using for reproducible builds + # tests of other projects… + REPRODUCIBLE_NODES="jenkins" + for NODE in $BUILD_NODES ; do + REPRODUCIBLE_NODES="$REPRODUCIBLE_NODES $NODE" + if [ "$NODE" = "profitbricks-build2-i386.debian.net" ] ; then + REPRODUCIBLE_NODES="$REPRODUCIBLE_NODES profitbricks-build3-amd64.debian.net profitbricks-build4-amd64.debian.net profitbricks-build7-amd64.debian.net" + fi + done + for NODE in $REPRODUCIBLE_NODES ; do if [ -z "$(echo $NODE | grep $ARCH || true)" ] && [ "$NODE" != "jenkins" ] ; then continue elif [ "$NODE" = "jenkins" ] && [ "$ARCH" != "amd64" ] ; then @@ -61,30 +71,42 @@ for ARCH in ${ARCHS} ; do URL="https://jenkins.debian.net/view/reproducible/view/Node_maintenance/job/reproducible_maintenance_${ARCH}_${JENKINS_NODENAME}" BADGE="$URL/badge/icon" write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>" - if [ "$JENKINS_NODENAME" = "jenkins" ] ; then - write_page "<td></td>" - else - write_page "<td>" - 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 "<a href='https://jenkins.debian.net/userContent/reproducible/debian/build_service/${WORKER}/worker.log'>" - write_page "$(echo $WORKER |cut -d '_' -f2)</a> " - done - write_page "</td>" - fi + case $JENKINS_NODENAME in + jenkins) write_page "<td></td>" ;; + profitbricks3) write_page "<td></td>" ;; + profitbricks4) write_page "<td></td>" ;; + profitbricks7) write_page "<td></td>" ;; + *) write_page "<td>" + 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 "<a href='https://jenkins.debian.net/userContent/reproducible/debian/build_service/${WORKER}/worker.log'>" + write_page "$(echo $WORKER |cut -d '_' -f2)</a> " + done + write_page "</td>" + ;; + esac for SUITE in ${SUITES} ; do - 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 "<td><a href='$URL'><img src='$BADGE' /></a></td>" + case $JENKINS_NODENAME in + profitbricks3) write_page "<td></td>" ;; + profitbricks4) write_page "<td></td>" ;; + profitbricks7) write_page "<td></td>" ;; + *) 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 "<td><a href='$URL'><img src='$BADGE' /></a></td>" + ;; + esac done for SUITE in ${SUITES} ; do - if [ "$JENKINS_NODENAME" = "jenkins" ] ; then - write_page "<td colspan='3'></td>" - 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 "<td><a href='$URL'><img src='$BADGE' /></a></td>" - fi + case $JENKINS_NODENAME in + jenkins) write_page "<td></td>" ;; + profitbricks3) write_page "<td></td>" ;; + profitbricks4) write_page "<td></td>" ;; + profitbricks7) write_page "<td></td>" ;; + *) 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 "<td><a href='$URL'><img src='$BADGE' /></a></td>" + ;; + esac done write_page "</tr>" done |