mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Jenkins temporarily disable Catkin and Colcon builds
This commit is contained in:
Vendored
+73
-72
@@ -8,78 +8,79 @@ pipeline {
|
|||||||
|
|
||||||
parallel {
|
parallel {
|
||||||
|
|
||||||
stage('Catkin build on ROS workspace') {
|
// TODO: temporarily disabled 2020-06-03 waiting on mavlink update
|
||||||
agent {
|
// stage('Catkin build on ROS workspace') {
|
||||||
docker {
|
// agent {
|
||||||
image 'px4io/px4-dev-ros-melodic:2020-04-01'
|
// docker {
|
||||||
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
// image 'px4io/px4-dev-ros-melodic:2020-04-01'
|
||||||
}
|
// args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
||||||
}
|
// }
|
||||||
steps {
|
// }
|
||||||
sh 'ls -l'
|
// steps {
|
||||||
sh '''#!/bin/bash -l
|
// sh 'ls -l'
|
||||||
echo $0;
|
// sh '''#!/bin/bash -l
|
||||||
mkdir -p catkin_ws/src;
|
// echo $0;
|
||||||
cd catkin_ws;
|
// mkdir -p catkin_ws/src;
|
||||||
git -C ${WORKSPACE}/catkin_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
// cd catkin_ws;
|
||||||
git clone --recursive ${WORKSPACE}/catkin_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
// git -C ${WORKSPACE}/catkin_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
||||||
git -C ${WORKSPACE}/catkin_ws/src/Firmware fetch --tags;
|
// git clone --recursive ${WORKSPACE}/catkin_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
||||||
source /opt/ros/melodic/setup.bash;
|
// git -C ${WORKSPACE}/catkin_ws/src/Firmware fetch --tags;
|
||||||
export PYTHONPATH=/opt/ros/$ROS_DISTRO/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages;
|
// source /opt/ros/melodic/setup.bash;
|
||||||
catkin init;
|
// 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 build -j$(nproc) -l$(nproc);
|
// catkin init;
|
||||||
'''
|
// catkin build -j$(nproc) -l$(nproc);
|
||||||
// test if the binary was correctly installed and runs using 'mavros_posix_silt.launch'
|
// '''
|
||||||
sh '''#!/bin/bash -l
|
// // test if the binary was correctly installed and runs using 'mavros_posix_silt.launch'
|
||||||
echo $0;
|
// sh '''#!/bin/bash -l
|
||||||
source catkin_ws/devel/setup.bash;
|
// echo $0;
|
||||||
rostest px4 pub_test.launch;
|
// source catkin_ws/devel/setup.bash;
|
||||||
'''
|
// rostest px4 pub_test.launch;
|
||||||
}
|
// '''
|
||||||
post {
|
// }
|
||||||
always {
|
// post {
|
||||||
sh 'rm -rf catkin_ws'
|
// always {
|
||||||
}
|
// sh 'rm -rf catkin_ws'
|
||||||
failure {
|
// }
|
||||||
archiveArtifacts(allowEmptyArchive: false, artifacts: '.ros/**/*.xml, .ros/**/*.log')
|
// failure {
|
||||||
}
|
// archiveArtifacts(allowEmptyArchive: false, artifacts: '.ros/**/*.xml, .ros/**/*.log')
|
||||||
}
|
// }
|
||||||
options {
|
// }
|
||||||
checkoutToSubdirectory('catkin_ws/src/Firmware')
|
// options {
|
||||||
}
|
// checkoutToSubdirectory('catkin_ws/src/Firmware')
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
stage('Colcon build on ROS2 workspace') {
|
//
|
||||||
agent {
|
// stage('Colcon build on ROS2 workspace') {
|
||||||
docker {
|
// agent {
|
||||||
image 'px4io/px4-dev-ros2-dashing:2020-04-01'
|
// docker {
|
||||||
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
// image 'px4io/px4-dev-ros2-dashing:2020-04-01'
|
||||||
}
|
// args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
||||||
}
|
// }
|
||||||
steps {
|
// }
|
||||||
sh 'ls -l'
|
// steps {
|
||||||
sh '''#!/bin/bash -l
|
// sh 'ls -l'
|
||||||
echo $0;
|
// sh '''#!/bin/bash -l
|
||||||
unset ROS_DISTRO;
|
// echo $0;
|
||||||
mkdir -p colcon_ws/src;
|
// unset ROS_DISTRO;
|
||||||
cd colcon_ws;
|
// mkdir -p colcon_ws/src;
|
||||||
git -C ${WORKSPACE}/colcon_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
// cd colcon_ws;
|
||||||
git clone --recursive ${WORKSPACE}/colcon_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
// git -C ${WORKSPACE}/colcon_ws/src/Firmware submodule update --init --recursive --force Tools/sitl_gazebo
|
||||||
git -C ${WORKSPACE}/colcon_ws/src/Firmware fetch --tags;
|
// git clone --recursive ${WORKSPACE}/colcon_ws/src/Firmware/Tools/sitl_gazebo src/mavlink_sitl_gazebo;
|
||||||
source /opt/ros/bouncy/setup.sh;
|
// git -C ${WORKSPACE}/colcon_ws/src/Firmware fetch --tags;
|
||||||
source /opt/ros/melodic/setup.sh;
|
// source /opt/ros/bouncy/setup.sh;
|
||||||
colcon build --event-handlers console_direct+ --symlink-install;
|
// source /opt/ros/melodic/setup.sh;
|
||||||
'''
|
// colcon build --event-handlers console_direct+ --symlink-install;
|
||||||
}
|
// '''
|
||||||
post {
|
// }
|
||||||
always {
|
// post {
|
||||||
sh 'rm -rf colcon_ws'
|
// always {
|
||||||
}
|
// sh 'rm -rf colcon_ws'
|
||||||
}
|
// }
|
||||||
options {
|
// }
|
||||||
checkoutToSubdirectory('colcon_ws/src/Firmware')
|
// options {
|
||||||
}
|
// checkoutToSubdirectory('colcon_ws/src/Firmware')
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
stage('Style check') {
|
stage('Style check') {
|
||||||
agent {
|
agent {
|
||||||
|
|||||||
Reference in New Issue
Block a user