mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ci/packer] delete master repo before creating 7.x bootstrap cache
This commit is contained in:
parent
fdffb06881
commit
6a0d45ad90
1 changed files with 11 additions and 0 deletions
|
@ -41,3 +41,14 @@ tar -cf "$HOME/.kibana/bootstrap_cache/$branch.tar" \
|
|||
.chromedriver;
|
||||
|
||||
echo "created $HOME/.kibana/bootstrap_cache/$branch.tar"
|
||||
|
||||
if [ "$branch" == "master" ]; then
|
||||
echo "Creatting bootstrap cache for 7.x";
|
||||
|
||||
git clone https://github.com/elastic/kibana.git --branch 7.x --depth 1 /tmp/kibana-7.x
|
||||
cd /tmp/kibana-7.x;
|
||||
rm -rf $KIBANA_DIR;
|
||||
./.ci/packer_cache.sh;
|
||||
cd ~
|
||||
rm -rf /tmp/kibana-7.x;
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue