Skip to content

Commit

Permalink
Windows colcon: Rename ignition package to gz if not in ws (2) (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
methylDragon authored Jun 25, 2022
1 parent 7f052cf commit cf6e4c6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jenkins-scripts/lib/colcon-default-devel-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ if "%COLCON_AUTO_MAJOR_VERSION%" == "true" (
echo "MAJOR_VERSION detected: !PKG_MAJOR_VERSION!"
)

:: Check if package is in colcon workspace
echo # BEGIN SECTION: Update package %COLCON_PACKAGE% from ignition to gz if needed
echo Packages in workspace:
colcon list --names-only

colcon list --names-only | find "%COLCON_PACKAGE%"
if errorlevel 1 (
set COLCON_PACKAGE=%COLCON_PACKAGE:ignition=gz%
)
colcon list --names-only | find "%COLCON_PACKAGE%"
if errorlevel 1 (
echo Failed to find package %COLCON_PACKAGE% in workspace.
goto :error
)
echo Using package name %COLCON_PACKAGE%
echo # END SECTION

set TEST_RESULT_PATH=%WORKSPACE%\ws\build\%COLCON_PACKAGE%\test_results

setlocal ENABLEDELAYEDEXPANSION
Expand Down

0 comments on commit cf6e4c6

Please sign in to comment.