Jenkinsfile temporarily disable catkin and colcon builds

This commit is contained in:
Daniel Agar
2019-02-10 17:03:56 -05:00
committed by GitHub
parent 955cde72af
commit 0b16e650b7
Vendored
+65 -65
View File
@@ -6,72 +6,72 @@ pipeline {
parallel { parallel {
stage('Catkin build on ROS workspace') { // stage('Catkin build on ROS workspace') {
agent { // agent {
docker { // docker {
image 'px4io/px4-dev-ros:2019-02-09' // image 'px4io/px4-dev-ros:2019-02-09'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE' // args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
} // }
} // }
steps { // steps {
sh 'ls -l' // sh 'ls -l'
sh '''#!/bin/bash -l // sh '''#!/bin/bash -l
echo $0; // echo $0;
mkdir -p catkin_ws/src; // mkdir -p catkin_ws/src;
cd catkin_ws; // cd catkin_ws;
git -C ${WORKSPACE}/catkin_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo // git -C ${WORKSPACE}/catkin_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
git clone --recursive ${WORKSPACE}/catkin_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo; // git clone --recursive ${WORKSPACE}/catkin_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
source /opt/ros/melodic/setup.bash; // source /opt/ros/melodic/setup.bash;
catkin init; // catkin init;
catkin build -j$(nproc) -l$(nproc); // catkin build -j$(nproc) -l$(nproc);
''' // '''
// test if the binary was correctly installed and runs using 'mavros_posix_silt.launch' // // test if the binary was correctly installed and runs using 'mavros_posix_silt.launch'
sh '''#!/bin/bash -l // sh '''#!/bin/bash -l
echo $0; // echo $0;
source catkin_ws/devel/setup.bash; // source catkin_ws/devel/setup.bash;
rostest px4 pub_test.launch; // rostest px4 pub_test.launch;
''' // '''
} // }
post { // post {
always { // always {
sh 'rm -rf catkin_ws' // sh 'rm -rf catkin_ws'
} // }
} // }
options { // options {
checkoutToSubdirectory('catkin_ws/src/Firmware') // checkoutToSubdirectory('catkin_ws/src/Firmware')
} // }
} // }
stage('Colcon build on ROS2 workspace') { // stage('Colcon build on ROS2 workspace') {
agent { // agent {
docker { // docker {
image 'px4io/px4-dev-ros2-bouncy:2019-02-09' // image 'px4io/px4-dev-ros2-bouncy:2019-02-09'
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE' // args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
} // }
} // }
steps { // steps {
sh 'ls -l' // sh 'ls -l'
sh '''#!/bin/bash -l // sh '''#!/bin/bash -l
echo $0; // echo $0;
unset ROS_DISTRO; // unset ROS_DISTRO;
mkdir -p colcon_ws/src; // mkdir -p colcon_ws/src;
cd colcon_ws; // cd colcon_ws;
git -C ${WORKSPACE}/colcon_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo // git -C ${WORKSPACE}/colcon_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
git clone --recursive ${WORKSPACE}/colcon_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo; // git clone --recursive ${WORKSPACE}/colcon_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
source /opt/ros/bouncy/setup.sh; // source /opt/ros/bouncy/setup.sh;
source /opt/ros/melodic/setup.sh; // source /opt/ros/melodic/setup.sh;
colcon build --event-handlers console_direct+ --symlink-install; // colcon build --event-handlers console_direct+ --symlink-install;
''' // '''
} // }
post { // post {
always { // always {
sh 'rm -rf colcon_ws' // sh 'rm -rf colcon_ws'
} // }
} // }
options { // options {
checkoutToSubdirectory('colcon_ws/src/Firmware') // checkoutToSubdirectory('colcon_ws/src/Firmware')
} // }
} // }
stage('Style check') { stage('Style check') {
agent { agent {