Skip to content

Commit 8937c47

Browse files
authored
Add in setting of the RHEL distribution. (#13)
Since it is part of the default CI now, we should set it here. Signed-off-by: Chris Lalancette <clalancette@gmail.com>
1 parent 6cb5459 commit 8937c47

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ros_github_scripts/ci_for_pr.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
'rolling': '' # use default
4040
}
4141

42+
ROS_DISTRO_TO_RHEL_DISTRO = {
43+
'humble': '8',
44+
'iron': '9',
45+
'jazzy': '9',
46+
'rolling': '' # use default
47+
}
4248

4349
def panic(msg: str) -> None:
4450
raise RuntimeError('Panic: ' + msg)
@@ -225,6 +231,7 @@ def run_jenkins_build(
225231
"""
226232
# intentionally raises key_error on unknown distro
227233
ubuntu_distro = ROS_DISTRO_TO_UBUNTU_DISTRO[target_release]
234+
rhel_distro = ROS_DISTRO_TO_RHEL_DISTRO[target_release]
228235

229236
from jenkinsapi.jenkins import Jenkins
230237
logger.info('Connecting to Jenkins server')
@@ -255,6 +262,8 @@ def run_jenkins_build(
255262
build_params['CI_TEST_ARGS'] += f' {test_args}'
256263
if ubuntu_distro:
257264
build_params['CI_UBUNTU_DISTRO'] = ubuntu_distro
265+
if rhel_distro:
266+
build_params['CI_EL_RELEASE'] = rhel_distro
258267

259268
# Start the build and wait until it is completed. ci_launcher exits immediately after
260269
# queuing the child builds, so this should only take a few seconds

0 commit comments

Comments
 (0)