[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible maintenance: turn failure to end schroot sessions into warning as the code suggests

Holger Levsen gitlab at salsa.debian.org
Sat May 30 01:37:00 BST 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
310a316b by Holger Levsen at 2020-05-30T02:36:43+02:00
reproducible maintenance: turn failure to end schroot sessions into warning as the code suggests

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -1,7 +1,7 @@
 #!/bin/bash
 # vim: set noexpandtab:
 
-# Copyright 2014-2019 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2020 Holger Levsen <holger at layer-acht.org>
 #         © 2015-2018 Mattia Rizzolo <mattia at debian.org>
 # released under the GPLv2
 
@@ -393,8 +393,8 @@ if [ ! -z "$OLDSTUFF" ]; then
 	echo "$OLDSTUFF"
 	echo
 	for s in $(find "$dir" -mindepth 1 -maxdepth 1 -type d -mtime +2 -print0 | xargs -0 -r basename -a); do
-		echo "$(date -u) - removing schroot session $s..."
-		schroot -c "$s" --end-session
+		echo "$(date -u) - trying to end schroot sessions $s..."
+		schroot -c "$s" --end-session || true
 	done
 	OLDSTUFF=$(find "$dir" -mindepth 1 -maxdepth 1 -type d -mtime +2 -exec ls -lad {} \;)
 	if [ ! -z "$OLDSTUFF" ]; then



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/310a316b2c3a260e29a47cfd7a9b6bd833f0115b
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/20200530/db507bfe/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list