Skip to content

Commit

Permalink
Move backup to a public S3
Browse files Browse the repository at this point in the history
  • Loading branch information
bernatx committed Mar 28, 2020
1 parent c65e6e6 commit 7df4f97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Util/BuildTools/Setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ else
# try to use the backup boost we have in Jenkins
if [[ ! -f "${BOOST_PACKAGE_BASENAME}.tar.gz" ]] ; then
log "Using boost backup"
aws s3 cp "s3://carla-internal/build-backup/${BOOST_PACKAGE_BASENAME}.tar.gz" "${BOOST_PACKAGE_BASENAME}.tar.gz"
wget "https://carla-releases.s3.eu-west-3.amazonaws.com/Backup/${BOOST_PACKAGE_BASENAME}.tar.gz" || true
fi

log "Extracting boost for Python 2."
Expand Down
4 changes: 2 additions & 2 deletions Util/InstallersWin/install_boost.bat
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ if not exist "%BOOST_SRC_DIR%" (
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('%BOOST_REPO%', '%BOOST_TEMP_FILE_DIR%')"
)
if not exist "%BOOST_TEMP_FILE_DIR%" (
echo %FILE_N% Using Boost backup
aws s3 cp s3://carla-internal/build-backup/%BOOST_TEMP_FILE% "%BOOST_TEMP_FILE_DIR%"
echo %FILE_N% Using Boost backup
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://carla-releases.s3.eu-west-3.amazonaws.com/Backup/%BOOST_TEMP_FILE%', '%BOOST_TEMP_FILE_DIR%')"
)
if %errorlevel% neq 0 goto error_download
echo %FILE_N% Extracting boost from "%BOOST_TEMP_FILE%", this can take a while...
Expand Down

0 comments on commit 7df4f97

Please sign in to comment.