From 74e07d2390325526e01be701d81bd47794ce9e00 Mon Sep 17 00:00:00 2001 From: Spencer Date: Thu, 12 Nov 2020 14:03:44 -0700 Subject: [PATCH] [packerCache] fix gulp usage, don't archive node_modules (#83327) Co-authored-by: spalger --- .ci/packer_cache_for_branch.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.ci/packer_cache_for_branch.sh b/.ci/packer_cache_for_branch.sh index ab0ab845b2dc3..b8b5f7d3c3f0e 100755 --- a/.ci/packer_cache_for_branch.sh +++ b/.ci/packer_cache_for_branch.sh @@ -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