CI: add 'Colcon' parallel build

This commit is contained in:
TSC21 2018-11-29 13:19:00 +00:00 committed by Nuno Marques
parent fa528745b5
commit 5ab2babe95
1 changed files with 28 additions and 1 deletions

29
Jenkinsfile vendored
View File

@ -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' }