Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows colcon: Rename ignition package to gz if not in ws (2) #755

Merged
merged 1 commit into from
Jun 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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