Loading deploy_jdn +17 −2 Original line number Diff line number Diff line #!/bin/bash # vim: set noexpandtab: # # Copyright 2014-2017 Holger Levsen <holger@layer-acht.org> # Copyright 2014-2018 Holger Levsen <holger@layer-acht.org> # © 2018 Mattia Rizzolo <mattia@debian.org> # # released under the GPLv=2 Loading Loading @@ -222,6 +222,8 @@ for i in "${HOSTS[@]}" ; do done echo JENKINS_OFFLINE_LIST="$(basename $0)/jenkins-home/offline_nodes" OFFLINE="" PROBLEMS="" for i in "${HOSTS[@]}" ; do HNAME1=$(echo $i | cut -d "@" -f2 | cut -d "." -f1|cut -d "-" -f1) # pb nodes (h01ger) Loading @@ -237,7 +239,15 @@ for i in "${HOSTS[@]}" ; do rm $LOG.$i $LOG.$i.done > /dev/null else echo "Problems on $i: $TAIL" if [ -z "$PROBLEMS" ] ; then if [ -f "$JENKINS_OFFLINE_LIST" ]; then if grep -q "$i" "$JENKINS_OFFLINE_LIST"; then if [ -z "$OFFLINE" ] ; then OFFLINE=" $i" else OFFLINE=" $i\n$OFFLINE" fi fi elif [ -z "$PROBLEMS" ] ; then PROBLEMS=" $i" else PROBLEMS=" $i\n$PROBLEMS" Loading @@ -254,6 +264,11 @@ if [ ! -z "$PROBLEMS" ] ; then echo -e "$PROBLEMS" echo fi if [ ! -z "$OFFLINE" ] ; then echo "Offline nodes with unsurprising problems encountered:" echo -e "$OFFLINE" echo fi END=$(date +'%s') DURATION=$(( $END - $START )) HOUR=$(echo "$DURATION/3600"|bc) Loading Loading
deploy_jdn +17 −2 Original line number Diff line number Diff line #!/bin/bash # vim: set noexpandtab: # # Copyright 2014-2017 Holger Levsen <holger@layer-acht.org> # Copyright 2014-2018 Holger Levsen <holger@layer-acht.org> # © 2018 Mattia Rizzolo <mattia@debian.org> # # released under the GPLv=2 Loading Loading @@ -222,6 +222,8 @@ for i in "${HOSTS[@]}" ; do done echo JENKINS_OFFLINE_LIST="$(basename $0)/jenkins-home/offline_nodes" OFFLINE="" PROBLEMS="" for i in "${HOSTS[@]}" ; do HNAME1=$(echo $i | cut -d "@" -f2 | cut -d "." -f1|cut -d "-" -f1) # pb nodes (h01ger) Loading @@ -237,7 +239,15 @@ for i in "${HOSTS[@]}" ; do rm $LOG.$i $LOG.$i.done > /dev/null else echo "Problems on $i: $TAIL" if [ -z "$PROBLEMS" ] ; then if [ -f "$JENKINS_OFFLINE_LIST" ]; then if grep -q "$i" "$JENKINS_OFFLINE_LIST"; then if [ -z "$OFFLINE" ] ; then OFFLINE=" $i" else OFFLINE=" $i\n$OFFLINE" fi fi elif [ -z "$PROBLEMS" ] ; then PROBLEMS=" $i" else PROBLEMS=" $i\n$PROBLEMS" Loading @@ -254,6 +264,11 @@ if [ ! -z "$PROBLEMS" ] ; then echo -e "$PROBLEMS" echo fi if [ ! -z "$OFFLINE" ] ; then echo "Offline nodes with unsurprising problems encountered:" echo -e "$OFFLINE" echo fi END=$(date +'%s') DURATION=$(( $END - $START )) HOUR=$(echo "$DURATION/3600"|bc) Loading