Move backup to a public S3
This commit is contained in:
parent
c65e6e67e6
commit
7df4f97ca9
|
@ -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."
|
||||
|
|
|
@ -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...
|
||||
|
|
Loading…
Reference in New Issue