Commit 416c60f4 authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: show link to maintenance jobs for offline nodes

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 413d585a
......@@ -92,21 +92,20 @@ build_nodes_health_page() {
URL="https://jenkins.debian.net/view/reproducible/view/Node_maintenance/job/reproducible_node_health_check_${ARCH}_${JENKINS_NODENAME}"
BADGE="$URL/badge/icon"
write_page "<td><a href='$URL'><img src='$BADGE' /></a></td>"
# maintenance
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>"
# mark offline nodes
JENKINS_OFFLINE_GIT_LIST=~jenkins-adm/jenkins.debian.net/jenkins-home/offline_nodes
if [ -f "$JENKINS_OFFLINE_GIT_LIST" ] && grep -q "$NODE" "$JENKINS_OFFLINE_GIT_LIST" \
&& ( [ -f "$JENKINS_OFFLINE_LIST" ] && ! grep -q "$NODE" "$JENKINS_OFFLINE_LIST" ) ; then
write_page '</td><td colspan="10" style="text-align: center;"><span style="font-style: italic;">temporarily marked offline by jenkins</span></td>'
write_page '</td><td colspan="9" style="text-align: center;"><span style="font-style: italic;">temporarily marked offline by jenkins</span></td>'
continue
elif [ -f "$JENKINS_OFFLINE_LIST" ] && grep -q "$NODE" "$JENKINS_OFFLINE_LIST"; then
write_page '</td><td colspan="10" style="text-align: center;"><span style="font-style: italic;">offline</span></td>'
write_page '</td><td colspan="9" style="text-align: center;"><span style="font-style: italic;">offline</span></td>'
continue
fi
# maintenance
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>"
# worker.log links
case $JENKINS_NODENAME in
jenkins) write_page "<td></td>" ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment