Unverified Commit d7dce103 authored by peterjc123's avatar peterjc123 Committed by GitHub
Browse files

Retry `anaconda login` for Windows builds (#1366)

parent 02a8c0ad
...@@ -50,13 +50,6 @@ IF ERRORLEVEL 1 ( ...@@ -50,13 +50,6 @@ IF ERRORLEVEL 1 (
exit /b 1 exit /b 1
) )
REM bash -c "yes | anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%""
anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%"
IF ERRORLEVEL 1 (
echo Anaconda client login failed
exit /b 1
)
set PYTORCH_FINAL_PACKAGE= set PYTORCH_FINAL_PACKAGE=
:: Upload all the packages under `PYTORCH_FINAL_PACKAGE_DIR` :: Upload all the packages under `PYTORCH_FINAL_PACKAGE_DIR`
FOR /F "delims=" %%i IN ('where /R %PYTORCH_FINAL_PACKAGE_DIR% *vision*.tar.bz2') DO ( FOR /F "delims=" %%i IN ('where /R %PYTORCH_FINAL_PACKAGE_DIR% *vision*.tar.bz2') DO (
...@@ -78,6 +71,13 @@ if "%RETRY_TIMES%" == "" ( ...@@ -78,6 +71,13 @@ if "%RETRY_TIMES%" == "" (
set /a SLEEP_TIME=%SLEEP_TIME%*2 set /a SLEEP_TIME=%SLEEP_TIME%*2
) )
REM bash -c "yes | anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%""
anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%"
IF ERRORLEVEL 1 (
echo Anaconda client login failed
exit /b 1
)
echo Uploading %PYTORCH_FINAL_PACKAGE% to Anaconda Cloud echo Uploading %PYTORCH_FINAL_PACKAGE% to Anaconda Cloud
anaconda upload "%PYTORCH_FINAL_PACKAGE%" -u pytorch-nightly --label main --force --no-progress anaconda upload "%PYTORCH_FINAL_PACKAGE%" -u pytorch-nightly --label main --force --no-progress
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment