[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible maintenance: deal gracefully with non-existing alpine schroots
Holger Levsen (@holger)
gitlab at salsa.debian.org
Fri Mar 17 16:10:47 GMT 2023
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
a8d44f88 by Holger Levsen at 2023-03-17T17:10:29+01:00
reproducible maintenance: deal gracefully with non-existing alpine schroots
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -318,14 +318,18 @@ set +e
case $HOSTNAME in
osuosl1-amd64|osuosl2-amd64|jenkins)
echo "$(date -u) - updating alpine schroot now."
- schroot --directory /tmp -c source:jenkins-reproducible-alpine -u root -- apk update
- schroot --directory /tmp -c source:jenkins-reproducible-alpine -u root -- apk upgrade
- RESULT=$?
- if [ $RESULT -eq 1 ] ; then
- echo "Warning: failed to update alpine schroot."
- DIRTY=true
+ if $(schroot -l|grep -q alpine) ; then
+ schroot --directory /tmp -c source:jenkins-reproducible-alpine -u root -- apk update
+ schroot --directory /tmp -c source:jenkins-reproducible-alpine -u root -- apk upgrade
+ RESULT=$?
+ if [ $RESULT -eq 1 ] ; then
+ echo "Warning: failed to update alpine schroot."
+ DIRTY=true
+ else
+ echo "$(date -u) - updating alpine schroot done."
+ fi
else
- echo "$(date -u) - updating alpine schroot done."
+ echo "No alpine schroot found, how strange."
fi
;;
*) ;;
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a8d44f889559c04a053b55583d137e9bbd93deef
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/a8d44f889559c04a053b55583d137e9bbd93deef
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/20230317/c69d5ecb/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list