Move backup to a public S3

This commit is contained in:
bernat 2020-03-28 13:16:20 +01:00
parent c65e6e67e6
commit 7df4f97ca9
2 changed files with 3 additions and 3 deletions

View File

@ -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."

View File

@ -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...