mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
CI: add 'Colcon' parallel build
This commit is contained in:
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@@ -18,7 +18,6 @@ pipeline {
|
|||||||
sh '''#!/bin/bash -l
|
sh '''#!/bin/bash -l
|
||||||
echo $0;
|
echo $0;
|
||||||
mkdir -p catkin_ws/src;
|
mkdir -p catkin_ws/src;
|
||||||
cp -R . catkin_ws/src/Firmware
|
|
||||||
cd catkin_ws;
|
cd catkin_ws;
|
||||||
source /opt/ros/melodic/setup.bash;
|
source /opt/ros/melodic/setup.bash;
|
||||||
catkin init;
|
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') {
|
stage('Style check') {
|
||||||
agent {
|
agent {
|
||||||
docker { image 'px4io/px4-dev-base:2018-11-22' }
|
docker { image 'px4io/px4-dev-base:2018-11-22' }
|
||||||
|
|||||||
Reference in New Issue
Block a user