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:
parent
6359c3fe6c
commit
4cc752799c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue