summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2021-03-23 18:54:36 -0400
committerDave Wallace <dwallacelf@gmail.com>2021-03-25 14:29:05 -0400
commitc1d74e62481d24802206b2037741a2860df9c998 (patch)
tree854de179ed7e978acbb2891fd4f6f30a310ae428 /jjb
parent50028767df228c92a84796a2ef269da0f058234f (diff)
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 <dwallacelf@gmail.com>
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/scripts/setup_executor_env.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/jjb/scripts/setup_executor_env.sh b/jjb/scripts/setup_executor_env.sh
index f6b6480f..fbbcc5a0 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"