Skip to content

Commit

Permalink
Windows colcon: Rename ignition package to gz if not in ws (#754)
Browse files Browse the repository at this point in the history
* Windows colcon: Attempt gz package if ignition not in ws

Signed-off-by: Louise Poubel <[email protected]>

* debug

Signed-off-by: Louise Poubel <[email protected]>

* echo list

Signed-off-by: Louise Poubel <[email protected]>

* findstr

Signed-off-by: Louise Poubel <[email protected]>

* findstr

Signed-off-by: Louise Poubel <[email protected]>

* find

Signed-off-by: Louise Poubel <[email protected]>

* Debug output, separate section

Signed-off-by: Louise Poubel <[email protected]>

* cleanup

Signed-off-by: Louise Poubel <[email protected]>

* Move msg

Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Jun 25, 2022
1 parent 127137e commit 7f052cf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jenkins-scripts/lib/windows_library.bat
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,23 @@ goto :EOF

set COLCON_PACKAGE=%1

:: 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

:: two runs to get the dependencies built with testing and the package under
:: test build with tests
echo # BEGIN SECTION: colcon compilation without test for dependencies of %COLCON_PACKAGE%
Expand Down

0 comments on commit 7f052cf

Please sign in to comment.