marcoabreu closed pull request #10975: [MXNET-343] avoid importing docker_cache if feature is not used URL: https://github.com/apache/incubator-mxnet/pull/10975
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/Jenkinsfile b/Jenkinsfile index 4d8dfb713eb..e45bea7f456 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -449,7 +449,7 @@ try { } } }, - 'Raspberry / ARMv6l':{ + 'Raspberry / ARMv6':{ node('mxnetlinux-cpu') { ws('workspace/build-raspberry-armv6') { timeout(time: max_time, unit: 'MINUTES') { diff --git a/ci/build.py b/ci/build.py index 6b1d23e0391..deae1d733a8 100755 --- a/ci/build.py +++ b/ci/build.py @@ -33,7 +33,6 @@ import shutil import subprocess import sys -import docker_cache from copy import deepcopy from itertools import chain from subprocess import call, check_call @@ -232,6 +231,7 @@ def script_name() -> str: platform = args.platform tag = get_docker_tag(platform) if args.download_docker_cache: + import docker_cache logging.info('Docker cache download is enabled') docker_cache.load_docker_cache(bucket_name=args.docker_cache_bucket, docker_tag=tag) build_docker(platform, docker_binary) @@ -256,6 +256,7 @@ def script_name() -> str: logging.info("Artifacts will be produced in the build/ directory.") for platform in platforms: if args.download_docker_cache: + import docker_cache tag = get_docker_tag(platform) logging.info('Docker cache download is enabled') docker_cache.load_docker_cache(bucket_name=args.docker_cache_bucket, docker_tag=tag) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services