[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] jenkins nodes: check for upgradable packages in maintenance job too

Holger Levsen (@holger) gitlab at salsa.debian.org
Wed Apr 26 20:31:14 BST 2023



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


Commits:
69c917c5 by Holger Levsen at 2023-04-26T21:30:28+02:00
jenkins nodes: check for upgradable packages in maintenance job too

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

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -889,6 +889,15 @@ if [ "$HOSTNAME" = "$MAINNODE" ] && [ $(date -u +%H) -eq 0 ]  ; then
 	done
 fi
 
+#
+# checking for system updates
+#
+if [ $(apt list --upgradable 2>/dev/null | wc -l) -gt 1 ] ; then
+	echo "Warning: there are packages to be upgraded on this system."
+	apt list --upgradable 2>/dev/null
+	DIRTY=true
+fi
+
 if ! $DIRTY ; then
 	echo "$(date -u ) - Everything seems to be fine."
 	echo



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/69c917c5889e2105a6396f7bfc7fd8e9d469037b
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/20230426/42e8f975/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list