forked from Archive/PX4-Autopilot
add Jenkins catkin build
This commit is contained in:
parent
324a5c1477
commit
3a910555a1
|
@ -5,6 +5,32 @@ pipeline {
|
|||
stage('Analysis') {
|
||||
|
||||
parallel {
|
||||
stage('catkin') {
|
||||
agent {
|
||||
docker {
|
||||
image 'px4io/px4-dev-ros:2018-09-24'
|
||||
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
||||
}
|
||||
}
|
||||
|
||||
steps {
|
||||
sh 'ls -l'
|
||||
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;
|
||||
source devel/setup.bash;
|
||||
catkin build -j$(nproc) -l$(nproc);
|
||||
'''
|
||||
sh 'rm -rf catkin_ws'
|
||||
}
|
||||
options {
|
||||
checkoutToSubdirectory('catkin_ws/src/Firmware')
|
||||
}
|
||||
}
|
||||
|
||||
stage('Style Check') {
|
||||
agent {
|
||||
|
|
Loading…
Reference in New Issue