Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions codebuild_specs/scripts-windows/shared-scripts-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ function storeCache {
s3Path="s3://$CACHE_BUCKET_NAME/$CODEBUILD_SOURCE_VERSION/$alias"
echo writing cache to $s3Path
# zip contents and upload to s3
# if ! (cd $localPath && tar -czf cache.tar . && ls && aws s3 cp cache.tar $s3Path); then
# echo Something went wrong storing the cache.
# fi
if ! (cd $localPath && tar -czf cache.tar . && ls && aws s3 cp cache.tar $s3Path); then
if ! (cd $localPath && tar cz . | aws s3 cp - $s3Path); then
echo Something went wrong storing the cache.
fi
echo done writing cache
Expand Down
Loading