[Git][qa/jenkins.debian.net][master] reproducible Debian: adopt cleanup_nodes.sh to the new way of running r-b build services
Holger Levsen (@holger)
gitlab at salsa.debian.org
Wed May 22 12:22:17 BST 2024
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
12789023 by Holger Levsen at 2024-05-22T13:22:02+02:00
reproducible Debian: adopt cleanup_nodes.sh to the new way of running r-b build services
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_cleanup_nodes.sh
Changes:
=====================================
bin/reproducible_cleanup_nodes.sh
=====================================
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright © 2015-2017 Holger Levsen <holger at layer-acht.org>
+# Copyright © 2015-2024 Holger Levsen <holger at layer-acht.org>
# released under the GPLv2
DEBUG=false
@@ -20,8 +20,12 @@ elif [ "$(whoami)" != "jenkins" ] ; then
fi
# deny running this if build service is still running
-SERVICE="reproducible_build.service"
-RESULT=$(systemctl show $SERVICE|grep ^ActiveState=active||true)
+if [ -z "${XDG_RUNTIME_DIR:-}" ]; then
+ XDG_RUNTIME_DIR="/run/user/$UID"
+ export XDG_RUNTIME_DIR
+fi
+SERVICE='reproducible_build@*.service'
+RESULT=$(systemctl --user -M jenkins@ show $SERVICE |grep ^ActiveState=active||true)
if [ -n "$RESULT" ] ; then
echo "$SERVICE is still running, aborting."
exit 1
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/127890236ed56ae1539c8c8f5cadd0d83ab52a1d
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/127890236ed56ae1539c8c8f5cadd0d83ab52a1d
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/20240522/15defc33/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list