From e15a512f6f0f3927c21764a8237db50832a4b740 Mon Sep 17 00:00:00 2001 From: TSC21 Date: Mon, 13 Jan 2020 16:46:28 +0000 Subject: [PATCH] Jenkins: export PYTHONPATH before Catkin build --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index bb32fb047d..dafac40fa7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,6 +25,7 @@ pipeline { git clone --recursive ${WORKSPACE}/catkin_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo; git -C ${WORKSPACE}/catkin_ws/src/Firmware fetch --tags; source /opt/ros/melodic/setup.bash; + export PYTHONPATH=/opt/ros/$ROS_DISTRO/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages; catkin init; catkin build -j$(nproc) -l$(nproc); '''