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

Travis update: don't fail if build cache upload fails #3994

Merged
merged 1 commit into from
Oct 21, 2019
Merged
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
Ensure build cache upload fail does not fail job
  • Loading branch information
nwmac committed Oct 20, 2019
commit 0fcbad54746c2b5fe65d8da548921df1e34024d4
21 changes: 12 additions & 9 deletions deploy/ci/travis/e2e-build-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,25 @@ fi
if [ "${LOCAL_BUILD}" == "false" ]; then
echo "Downloaded and unpacked an existing build - no need to build locally"
else

set -e

# Get go
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
chmod +x ~/bin/gimme
eval "$(gimme 1.12.4)"
go version
# Get go
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
chmod +x ~/bin/gimme
eval "$(gimme 1.12.4)"
go version

npm run build
npm run build-backend
npm run build
npm run build-backend

set +e
tar cvfz ${GZIP_NAME} dist/* src/jetstream/jetstream

# Upload
# Upload
mc cp -q --insecure ${GZIP_NAME} ${MC_HOST}/${S3_BUILDS_BUCKET}

# Ignore error from uploading - should not fail build if we can't upload the build archive
# This just means we won't be able to us this cache next build
exit 0

fi