[ci] load the boostrap_cache baked into CI images (#25841)

We're creating a cache of files that should speed up bootstraping CI jobs and baking it into the CI images with 992daf5fed/.ci/packer_cache.sh.

This PR utilizes that cache (that will start showing up in CI images shortly) by extracting it into the Kibana workspace and failing if it's missing for some reason.
This commit is contained in:
Spencer 2018-11-20 14:22:44 -08:00 committed by GitHub
parent fad8d0cc3a
commit ff49a1c674
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -5,6 +5,8 @@ set -e
# move to Kibana root
cd "$(dirname "$0")/.."
./src/dev/ci_setup/load_bootstrap_cache.sh;
case "$JOB" in
kibana-intake)
./test/scripts/jenkins_unit.sh

View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
bootstrapCache="$HOME/.kibana/bootstrap_cache/master.tar"
if [ -f "$bootstrapCache" ]; then
echo "extracting bootstrap_cache from $bootstrapCache";
tar -xf "$bootstrapCache";
else
echo "bootstrap_cache missing";
exit 1;
fi