jenkins-common.sh: Don't rebuild debian-stretch-build during fix_perms

When fixing the permissions at the end of a test run, it really doesn't
matter if we're running a current debian-stretch-build image, or if we
are using an ancient one.  All we need is a 'chmod' binary.

Change-Id: Ib008ee72f40aeefb307c0ba74a57b70daae9d07b
Related: OS#4060
This commit is contained in:
Harald Welte 2019-06-13 10:40:09 +02:00 committed by Oliver Smith
parent b14af6729b
commit b40355a588
1 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,10 @@ network_remove() {
}
fix_perms() {
docker_images_require debian-stretch-build
if ! docker_image_exists "debian-stretch-build"; then
docker_images_require "debian-stretch-build"
fi
echo Fixing permissions
docker run --rm \
-v $VOL_BASE_DIR:/data \