diff options
-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 |