ros-infrastructure / ros_buildfarm

ROS buildfarm based on Docker
Apache License 2.0
81 stars 96 forks source link

How to set ROS_DISTRO on the buildfarm? #988

Closed ct2034 closed 1 year ago

ct2034 commented 1 year ago

Is there a particular reason that the ROS_DISTRO is not set pr jobs on the buildfarm? This causes this problem: https://build.ros2.org/job/Rpr__diagnostics__ubuntu_jammy_amd64/97/console I don't think that there is a way to pass any env variables to this job. (according to http://wiki.ros.org/buildfarm/Pull%20request%20testing) Is there a way I can define this for a job?

ct2034 commented 1 year ago

Nvm. I found the solution. :smile: I needed a <build_depend>ros_environment</build_depend> in the package.xml solved it in https://github.com/ros/diagnostics/pull/272/commits/7fc1938ef59d227cefc97ff4d8eb7d64865929a8 src https://answers.ros.org/question/277124/buildfarm-doesnt-define-the-ros_distro-environment-variable/