Skip to content

Commit

Permalink
Add bootstrap cache fallback (#46804)
Browse files Browse the repository at this point in the history
* Read branch from package.json as a backup for bootstrap_cache
  • Loading branch information
brianseeders authored Sep 27, 2019
1 parent c3f4f5d commit 3a34d9b
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/dev/ci_setup/extract_bootstrap_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ if [ -f "$bootstrapCache" ]; then
echo "extracting bootstrap_cache from $bootstrapCache";
tar -xf "$bootstrapCache";
else
echo ""
echo ""
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo " bootstrap_cache missing";
echo " looked for '$bootstrapCache'";
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo ""
echo ""
branchBootstrapCache="$HOME/.kibana/bootstrap_cache/$(jq -r .branch package.json).tar"

if [ -f "$branchBootstrapCache" ]; then
echo "extracting bootstrap_cache from $branchBootstrapCache";
tar -xf "$branchBootstrapCache";
else
echo ""
echo ""
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo " bootstrap_cache missing";
echo " looked for '$bootstrapCache'";
echo " and '$branchBootstrapCache'";
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~";
echo ""
echo ""
fi
fi

0 comments on commit 3a34d9b

Please sign in to comment.