This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
daniel gerrit-no-reply at lists.osmocom.orgdaniel has uploaded this change for review. ( https://gerrit.osmocom.org/13008
Change subject: Fix permissions when collecting logs
......................................................................
Fix permissions when collecting logs
Use the debian-jessie-build container to ensure all files under
${VOL_BASE_DIR} are readable.
Call this directly from collect_logs so we handle all ttcn3 jobs.
Fixes: OS#3800
Change-Id: I124c554eee69ec5586547d3c96b8ec571e0653a7
---
M jenkins-common.sh
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/08/13008/1
diff --git a/jenkins-common.sh b/jenkins-common.sh
index 0dbe8b0..7c8e231 100644
--- a/jenkins-common.sh
+++ b/jenkins-common.sh
@@ -29,7 +29,18 @@
docker network remove $NET_NAME
}
+fix_perms() {
+ docker_images_require debian-jessie-build
+ echo Fixing permissions
+ docker run --rm \
+ -v $VOL_BASE_DIR:/data \
+ --name ${BUILD_TAG}-cleaner \
+ $REPO_USER/debian-jessie-build \
+ chmod -R a+rX /data/
+}
+
collect_logs() {
+ fix_perms
cat "$VOL_BASE_DIR"/*/junit-*.log || true
}
--
To view, visit https://gerrit.osmocom.org/13008
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I124c554eee69ec5586547d3c96b8ec571e0653a7
Gerrit-Change-Number: 13008
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190222/26714fcb/attachment.htm>