Skip to content

Commit d7dce10

Browse files
authored
Retry anaconda login for Windows builds (#1366)
1 parent 02a8c0a commit d7dce10

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packaging/windows/internal/upload.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ IF ERRORLEVEL 1 (
5050
exit /b 1
5151
)
5252

53-
REM bash -c "yes | anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%""
54-
anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%"
55-
IF ERRORLEVEL 1 (
56-
echo Anaconda client login failed
57-
exit /b 1
58-
)
59-
6053
set PYTORCH_FINAL_PACKAGE=
6154
:: Upload all the packages under `PYTORCH_FINAL_PACKAGE_DIR`
6255
FOR /F "delims=" %%i IN ('where /R %PYTORCH_FINAL_PACKAGE_DIR% *vision*.tar.bz2') DO (
@@ -78,6 +71,13 @@ if "%RETRY_TIMES%" == "" (
7871
set /a SLEEP_TIME=%SLEEP_TIME%*2
7972
)
8073

74+
REM bash -c "yes | anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%""
75+
anaconda login --username "%PYTORCH_ANACONDA_USERNAME%" --password "%PYTORCH_ANACONDA_PASSWORD%"
76+
IF ERRORLEVEL 1 (
77+
echo Anaconda client login failed
78+
exit /b 1
79+
)
80+
8181
echo Uploading %PYTORCH_FINAL_PACKAGE% to Anaconda Cloud
8282
anaconda upload "%PYTORCH_FINAL_PACKAGE%" -u pytorch-nightly --label main --force --no-progress
8383

0 commit comments

Comments
 (0)