[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] deploy_jdn: don't show the failed deployment log when the failure is expected

Mattia Rizzolo gitlab at salsa.debian.org
Sun May 10 18:27:07 BST 2020



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
9086c3a8 by Mattia Rizzolo at 2020-05-10T19:26:58+02:00
deploy_jdn: don't show the failed deployment log when the failure is expected

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- deploy_jdn


Changes:

=====================================
deploy_jdn
=====================================
@@ -235,9 +235,9 @@ for i in "${HOSTS[@]}" ; do
 			if grep -q "$i" "$JENKINS_OFFLINE_LIST"; then
 				KNOWN_OFFLINE=true
 				if [ -z "$OFFLINE" ] ; then
-					OFFLINE=" $i"
+					OFFLINE=" $i ($LOG.$i)"
 				else
-					OFFLINE=" $i\n$OFFLINE"
+					OFFLINE=" $i ($LOG.$i)\n$OFFLINE"
 				fi
 			fi
 		fi
@@ -247,9 +247,9 @@ for i in "${HOSTS[@]}" ; do
 			else
 				PROBLEMS=" $i\n$PROBLEMS"
 			fi
+			get_arch_color $i
+			xterm -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "less +G $LOG.$i ; rm $LOG.$i $LOG.$i.done" &
 		fi
-		get_arch_color $i
-		xterm -class deploy-jenkins -bg $BG -fa 'DejaVuSansMono' -fs 10 -e "less +G $LOG.$i ; rm $LOG.$i $LOG.$i.done" &
 	fi
 done
 echo
@@ -261,7 +261,7 @@ if [ ! -z "$PROBLEMS" ] ; then
 	echo
 fi
 if [ ! -z "$OFFLINE" ] ; then
-	echo "Offline nodes with unsurprising problems encountered:"
+	echo "Offline nodes with unsurprising problems encountered (not showing the failed deploy log):"
 	echo -e "$OFFLINE"
 	echo
 fi



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/9086c3a8265965b1fb5042ae1a1b5805969c8efa

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/9086c3a8265965b1fb5042ae1a1b5805969c8efa
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200510/856e2fa0/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list