diff options
author | 2015-10-05 15:26:26 -0700 | |
---|---|---|
committer | 2015-10-06 11:40:11 -0700 | |
commit | 60e5f91a39525cd10ae8fc033cb6a1aefa566984 (patch) | |
tree | 9f76ebbb7b5918e749ab3e0f4aea814a17837d6d /tools/jenkins/build_docker_and_run_tests.sh | |
parent | 9554534b5e649c30e6e6ef219eed25f954a9a03f (diff) |
Enable pip caching on Jenkins slaves
Diffstat (limited to 'tools/jenkins/build_docker_and_run_tests.sh')
-rwxr-xr-x | tools/jenkins/build_docker_and_run_tests.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/jenkins/build_docker_and_run_tests.sh b/tools/jenkins/build_docker_and_run_tests.sh index 2c562e992a..8b7809f2e2 100755 --- a/tools/jenkins/build_docker_and_run_tests.sh +++ b/tools/jenkins/build_docker_and_run_tests.sh @@ -37,8 +37,13 @@ cd `dirname $0`/../.. git_root=`pwd` cd - +# Ensure existence of ccache directory mkdir -p /tmp/ccache +# Ensure existence of the home directory for XDG caches (e.g. what pip uses for +# its cache location now that --download-cache is deprecated). +mkdir -p /tmp/xdg-cache-home + # Create a local branch so the child Docker script won't complain git branch -f jenkins-docker @@ -57,9 +62,11 @@ docker run \ -e "config=$config" \ -e "arch=$arch" \ -e CCACHE_DIR=/tmp/ccache \ + -e XDG_CACHE_HOME=/tmp/xdg-cache-home \ -i $TTY_FLAG \ -v "$git_root:/var/local/jenkins/grpc" \ -v /tmp/ccache:/tmp/ccache \ + -v /tmp/xdg-cache-home:/tmp/xdg-cache-home \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $(which docker):/bin/docker \ -w /var/local/git/grpc \ |