diff --git a/industrial_ci/src/isolation/docker.env b/industrial_ci/src/isolation/docker.env index 9e423816a..85c2428ca 100644 --- a/industrial_ci/src/isolation/docker.env +++ b/industrial_ci/src/isolation/docker.env @@ -29,6 +29,8 @@ HASHKEY_SKS IMMEDIATE_TEST_OUTPUT NOT_TEST_BUILD NOT_TEST_DOWNSTREAM +OS_NAME +OS_CODE_NAME PARALLEL_BUILDS PARALLEL_TESTS PIP_BREAK_SYSTEM_PACKAGES diff --git a/industrial_ci/src/ros.sh b/industrial_ci/src/ros.sh index 302e0a73d..368814b97 100644 --- a/industrial_ci/src/ros.sh +++ b/industrial_ci/src/ros.sh @@ -63,6 +63,10 @@ function _set_ros_defaults { "noetic") _ros1_defaults "focal" export ROS_PYTHON_VERSION=3 + if [ "$OS_NAME" = "debian" ]; then + _ros_is_eol "noetic/2023-03-02" + export ROS_VERSION_FINAL_DEBIAN=true + fi ;; "ardent") _ros2_defaults "xenial" @@ -123,7 +127,11 @@ function _set_ros_defaults { } function _use_snapshot() { - export ROS_REPOSITORY_PATH="http://snapshots.ros.org/${ROS_DISTRO?ROS_DISTRO needs to be set}/$1/ubuntu" + local osname="ubuntu" + if [ "$1" = "$ROS_VERSION_FINAL" ] && [ "${ROS_VERSION_FINAL_DEBIAN:-false}" = true ]; then + osname="debian" + fi + export ROS_REPOSITORY_PATH="http://snapshots.ros.org/${ROS_DISTRO?ROS_DISTRO needs to be set}/$1/$osname" export ROS_REPOSITORY_KEY="$ICI_SRC_PATH/keys/snapshots.asc" }