diff --git a/ros_buildfarm/workspace.py b/ros_buildfarm/workspace.py index 419ac912e..31ae2f8f1 100644 --- a/ros_buildfarm/workspace.py +++ b/ros_buildfarm/workspace.py @@ -88,6 +88,12 @@ def call_build_tool( '--event-handlers', 'console_direct+', '--executor', 'sequential'] + # In Foxy and prior, xunit2 format is needed to make Jenkins xunit plugin 2.x happy + # After Foxy, we introduced per-package changes to make local builds and CI + # builds act the same. + if rosdistro_name in ('dashing', 'eloquent', 'foxy'): + cmd += ['--pytest-args', '-o', 'junit_family=xunit2'] + if force_cmake: if build_tool == 'catkin_make_isolated': cmd.append('--force-cmake')