Skip to content

Commit

Permalink
Merge branch 'master' into jrivero/split_windows_gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rivero authored Feb 27, 2025
2 parents 11cefa6 + 116bf30 commit 36a0945
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion jenkins-scripts/lib/colcon-default-devel-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ goto :EOF

:error - error routine
echo Failed with error #%errorlevel%.
exit %errorlevel%
exit %EXTRA_EXIT_PARAM% %errorlevel%
24 changes: 12 additions & 12 deletions jenkins-scripts/lib/windows_library.bat
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ IF exist "%MSVC22_ON_WIN32_C%" (
call "%MSVC_ON_WIN32_C%" %MSVC_KEYWORD% || goto %win_lib% :error
) ELSE (
echo "Could not find the vcvarsall.bat file"
exit -1
exit %EXTRA_EXIT_PARAM% -1
)

goto :EOF
Expand Down Expand Up @@ -88,8 +88,8 @@ if errorlevel 1 (
set /a COUNT+=1
echo Download failed. Retry attempt !COUNT! of %RETRIES%.
if !COUNT! geq %RETRIES% (
echo Maximum retry attempts reached. Exiting...
exit 1
echo Maximum retry attempts reached. exit %EXTRA_EXIT_PARAM%ing...
exit %EXTRA_EXIT_PARAM% 1
)
timeout /t 5 >nul
goto retry
Expand Down Expand Up @@ -394,7 +394,7 @@ echo Downloading pixi %PIXI_VERSION% in %PIXI_TMPDIR%
if not exist "%PIXI_TMPDIR%" mkdir "%PIXI_TMPDIR%"
pushd %PIXI_TMPDIR%
call :wget "%PIXI_URL%" pixi.exe
if errorlevel 1 exit 1
if errorlevel 1 exit %EXTRA_EXIT_PARAM% 1
popd
goto :EOF

Expand All @@ -407,17 +407,17 @@ set ENV_NAME=%1
set CONDA_ENV_PATH=%CONDA_ENVS_DIR%\%ENV_NAME%
if not exist %CONDA_ENV_PATH% (
echo Can not find %CONDA_ENV_PATH% directory in the system
exit 1
exit %EXTRA_EXIT_PARAM% 1
)
if exist %PIXI_PROJECT_PATH% ( rmdir /s /q "%PIXI_PROJECT_PATH%")
if errorlevel 1 exit 1
if errorlevel 1 exit %EXTRA_EXIT_PARAM% 1
mkdir %PIXI_PROJECT_PATH%
copy %CONDA_ENV_PATH%\pixi.* %PIXI_PROJECT_PATH%
if errorlevel 1 exit 1
if errorlevel 1 exit %EXTRA_EXIT_PARAM% 1
pushd %PIXI_PROJECT_PATH%
if errorlevel 1 exit 1
if errorlevel 1 exit %EXTRA_EXIT_PARAM% 1
call %win_lib% :pixi_cmd install
if errorlevel 1 exit 1
if errorlevel 1 exit %EXTRA_EXIT_PARAM% 1
popd
goto :EOF

Expand All @@ -430,7 +430,7 @@ call %win_lib% :pixi_cmd shell-hook --locked > hooks.bat
type hooks.bat
call hooks.bat
:: ERRORS in hooks will make the build to fail. Be permissive
:: if errorlevel 1 exit EXTRA_EXIT_PARAM 1
:: if errorlevel 1 exit %EXTRA_EXIT_PARAM% EXTRA_exit %EXTRA_EXIT_PARAM%_PARAM 1
popd
goto :EOF

Expand All @@ -444,12 +444,12 @@ echo Running pixi %~1 %~2
:: project directory.
pushd %PIXI_PROJECT_PATH%
call "%PIXI_TMP%" %1 %2
if errorlevel 1 exit 1
if errorlevel 1 exit %EXTRA_EXIT_PARAM% 1
popd
goto :EOF

:: ##################################
:error - error routine
::
echo Failed in windows_library with error #%errorlevel%.
exit %errorlevel%
exit %EXTRA_EXIT_PARAM% %errorlevel%

0 comments on commit 36a0945

Please sign in to comment.