[Git][qa/jenkins.debian.net][master] reproducible Debian maintenance: don't fail the job if a to-be-killed process is already gone
Holger Levsen (@holger)
gitlab at salsa.debian.org
Mon Jan 15 09:58:26 GMT 2024
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
63b812a1 by Holger Levsen at 2024-01-15T10:58:17+01:00
reproducible Debian maintenance: don't fail the job if a to-be-killed process is already gone
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -417,7 +417,7 @@ if [ -n "$RESULTS" ] ; then
echo "found reproducible_build.sh processes which have pid 1 as parent (and not sshd), trying to kill them now."
for pid in $RESULTS ; do
echo "killing PID $pid and all children: $(ps -s $pid -o pid=)."
- sudo kill $(ps -s $pid -o pid=)
+ sudo kill $(ps -s $pid -o pid=) || true
done
RESULTS=$(pgrep -f reproducible_build.sh --parent 1 || true)
if [ -n "$RESULTS" ] ; then
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/63b812a1bfec14e7382c49fa2be172b0e4316053
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/63b812a1bfec14e7382c49fa2be172b0e4316053
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/20240115/2662405e/attachment.htm>
More information about the Qa-jenkins-scm
mailing list