Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store entire build directory as CI artifacts #15310

Merged
merged 3 commits into from Apr 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion .circleci/config.yml
Expand Up @@ -44,4 +44,7 @@ jobs:
path: ./node_modules.tgz

- store_artifacts:
path: ./scripts/error-codes/codes.json
path: ./build.tgz

- store_artifacts:
path: ./scripts/error-codes/codes.json
10 changes: 7 additions & 3 deletions scripts/circleci/pack_and_store_artifact.sh
Expand Up @@ -2,10 +2,14 @@

set -e

# Compress build directory into a single tarball for easy download
tar -zcvf ./build.tgz ./build

# NPM pack all modules to ensure we archive the correct set of files
for dir in ./build/node_modules/* ; do
cd ./build/node_modules
for dir in ./* ; do
npm pack "$dir"
done

# Wrap everything in a single zip file for easy download by the publish script
tar -zcvf ./node_modules.tgz ./*.tgz
# Compress packed modules into a single tarball for easy download by the publish script
tar -zcvf ../../node_modules.tgz ./*.tgz