Independent control of use of docker cache for builder containers

Signed-off-by: Scott Little <scott.little@windriver.com>
Change-Id: I1c00af1efb695aea7908ec415266a0f53e8444a5
This commit is contained in:
Scott Little 2022-10-13 09:51:22 -04:00
parent 72e948f751
commit 61547aeba8
3 changed files with 7 additions and 1 deletions

View File

@ -134,6 +134,9 @@ pipeline {
booleanParam (
name: 'REBUILD_BUILDER_IMAGES'
)
booleanParam (
name: 'BUILDER_USE_DOCKER_CACHE'
)
booleanParam (
name: 'REFRESH_SOURCE'
)

View File

@ -40,6 +40,9 @@ pipeline {
booleanParam (
name: 'REBUILD_BUILDER_IMAGES'
)
booleanParam (
name: 'BUILDER_USE_DOCKER_CACHE'
)
booleanParam (
name: 'USE_DOCKER_CACHE'
)

View File

@ -17,7 +17,7 @@ set -x
load_build_env
# start containers
if $USE_DOCKER_CACHE ; then
if $BUILDER_USE_DOCKER_CACHE ; then
cache_opts="--cache"
fi
if $REBUILD_BUILDER_IMAGES ; then