From c1d74e62481d24802206b2037741a2860df9c998 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Tue, 23 Mar 2021 18:54:36 -0400 Subject: Enable CCACHE in builder images / labels - Remove aarch64 labels which do not have any executor docker images. Change-Id: I1f46929b1c8393aa7a25bad215a95b85f2e00bd9 Signed-off-by: Dave Wallace --- jjb/scripts/setup_executor_env.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'jjb') diff --git a/jjb/scripts/setup_executor_env.sh b/jjb/scripts/setup_executor_env.sh index f6b6480f4..fbbcc5a01 100755 --- a/jjb/scripts/setup_executor_env.sh +++ b/jjb/scripts/setup_executor_env.sh @@ -59,4 +59,26 @@ ls -lh "$downloads_cache" || true echo "$long_line" echo "DNS nameserver config in '/etc/resolv.conf':" cat /etc/resolv.conf || true + +if [ -n "${CCACHE_DIR:-}" ] ; then + echo "$long_line" + if [ -d "$CCACHE_DIR" ] ; then + num_ccache_files="$(find $CCACHE_DIR -type f | wc -l)" + ccache_conf="$CCACHE_DIR/ccache.conf" + echo "CCACHE_DIR='$CCACHE_DIR' ($num_ccache_files ccache files):" + du -sh /tmp/ccache + df -h /tmp/ccache + ls -l $CCACHE_DIR + unset -v CCACHE_DISABLE + if [ -f "$ccache_conf" ] ; then + echo "Contents of $ccache_conf:" + cat $ccache_conf + fi + else + echo "CCACHE_DIR='$CCACHE_DIR' is missing, disabling CCACHE..." + unset -v CCACHE_DIR + export CCACHE_DISABLE="1" + echo "CCACHE_DISABLE='${CCACHE_DISABLE:-}'" + fi +fi echo "$long_line" -- cgit 1.2.3-korg