From 5ab2babe9513ec390982b5e846aebfda17c91c9d Mon Sep 17 00:00:00 2001 From: TSC21 Date: Thu, 29 Nov 2018 13:19:00 +0000 Subject: [PATCH] CI: add 'Colcon' parallel build --- Jenkinsfile | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2bd8ee9dd8..5fa393261f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,6 @@ pipeline { sh '''#!/bin/bash -l echo $0; mkdir -p catkin_ws/src; - cp -R . catkin_ws/src/Firmware cd catkin_ws; source /opt/ros/melodic/setup.bash; catkin init; @@ -36,6 +35,34 @@ pipeline { } } + stage('Colcon') { + agent { + docker { + image 'px4io/px4-dev-ros2-bouncy:2018-11-22' + args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE' + } + } + steps { + sh 'ls -l' + sh '''#!/bin/bash -l + echo $0; + unset ROS_DISTRO; + mkdir -p colcon_ws/src; + cd colcon_ws; + source /opt/ros/bouncy/setup.sh; + colcon build --event-handlers console_direct+ --symlink-install; + ''' + } + post { + always { + sh 'rm -rf colcon_ws' + } + } + options { + checkoutToSubdirectory('colcon_ws/src/Firmware') + } + } + stage('Style check') { agent { docker { image 'px4io/px4-dev-base:2018-11-22' }