add Jenkins catkin build

This commit is contained in:
TSC21 2018-09-28 00:26:43 +01:00 committed by Lorenz Meier
parent 324a5c1477
commit 3a910555a1
1 changed files with 26 additions and 0 deletions

26
Jenkinsfile vendored
View File

@ -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 {