mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[packerCache] fix gulp usage, don't archive node_modules (#83327)
Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
parent
4c49d5d1be
commit
74e07d2390
1 changed files with 1 additions and 5 deletions
|
@ -18,7 +18,7 @@ node scripts/es snapshot --download-only;
|
|||
node scripts/es snapshot --license=oss --download-only;
|
||||
|
||||
# download reporting browsers
|
||||
(cd "x-pack" && yarn gulp downloadChromium);
|
||||
(cd "x-pack" && node ../node_modules/.bin/gulp downloadChromium);
|
||||
|
||||
# cache the chromedriver archive
|
||||
chromedriverDistVersion="$(node -e "console.log(require('chromedriver').version)")"
|
||||
|
@ -51,10 +51,6 @@ tar -cf "$HOME/.kibana/bootstrap_cache/$branch.tar" \
|
|||
.chromedriver \
|
||||
.geckodriver;
|
||||
|
||||
echo "Adding node_modules"
|
||||
# Find all of the node_modules directories that aren't test fixtures, and aren't inside other node_modules directories, and append them to the tar
|
||||
find . -type d -name node_modules -not -path '*__fixtures__*' -prune -print0 | xargs -0I % tar -rf "$HOME/.kibana/bootstrap_cache/$branch.tar" "%"
|
||||
|
||||
echo "created $HOME/.kibana/bootstrap_cache/$branch.tar"
|
||||
|
||||
if [[ "$branch" != "master" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue