mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[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:
parent
fad8d0cc3a
commit
ff49a1c674
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
13
src/dev/ci_setup/load_bootstrap_cache.sh
Executable file
13
src/dev/ci_setup/load_bootstrap_cache.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue