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
This commit is contained in:
Daniel Willmann 2019-02-22 18:48:31 +01:00
parent 6359c3fe6c
commit 4cc752799c
1 changed files with 11 additions and 0 deletions

View File

@ -29,7 +29,18 @@ network_remove() {
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
}