From f1d405c79402fb776bb065966cc4de54823f1f57 Mon Sep 17 00:00:00 2001 From: Lennart Reiher Date: Thu, 6 Jun 2024 15:11:11 +0000 Subject: [PATCH] ignore failures in catkin/colcon build, if arg is set --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b3c2870..4dc97a4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -260,7 +260,7 @@ ARG ENABLE_ROS1_DEVEL_SPACE="false" RUN source /opt/ros/${ROS_DISTRO}/setup.bash && \ if [[ -x "$(command -v colcon)" ]]; then \ if [[ $ENABLE_CONTINUE_BUILD_DESPITE_ERRORS == 'true' ]]; then \ - colcon build --continue-on-error --cmake-args -DCMAKE_BUILD_TYPE=Release ; \ + colcon build --continue-on-error --cmake-args -DCMAKE_BUILD_TYPE=Release || true ; \ else \ colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release ; \ fi ; \ @@ -269,7 +269,7 @@ RUN source /opt/ros/${ROS_DISTRO}/setup.bash && \ catkin config --install --extend /opt/ros/${ROS_DISTRO} ; \ fi && \ if [[ $ENABLE_CONTINUE_BUILD_DESPITE_ERRORS == 'true' ]]; then \ - catkin build -DCMAKE_BUILD_TYPE=Release --force-color --no-status --summarize --continue-on-failure ; \ + catkin build -DCMAKE_BUILD_TYPE=Release --force-color --no-status --summarize --continue-on-failure || true ; \ else \ catkin build -DCMAKE_BUILD_TYPE=Release --force-color --no-status --summarize ; \ fi ; \