2017-10-27 11:47:38 -03:00
|
|
|
pipeline {
|
2017-11-28 13:32:26 -04:00
|
|
|
agent none
|
2017-10-27 11:47:38 -03:00
|
|
|
stages {
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-08-04 17:48:47 -03:00
|
|
|
stage('Analysis') {
|
2018-08-04 13:51:51 -03:00
|
|
|
|
2017-10-30 11:20:23 -03:00
|
|
|
parallel {
|
2018-10-15 17:35:02 -03:00
|
|
|
|
2018-11-29 12:31:48 -04:00
|
|
|
stage('Catkin build on ROS workspace') {
|
2018-09-27 20:26:43 -03:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-ros:2019-01-01'
|
2018-09-27 20:26:43 -03:00
|
|
|
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;
|
|
|
|
cd catkin_ws;
|
2019-01-04 17:34:02 -04:00
|
|
|
git clone --recursive https://github.com/PX4/sitl_gazebo.git src/mavlink_sitl_gazebo;
|
2018-09-27 20:26:43 -03:00
|
|
|
source /opt/ros/melodic/setup.bash;
|
|
|
|
catkin init;
|
|
|
|
catkin build -j$(nproc) -l$(nproc);
|
|
|
|
'''
|
2018-12-12 16:07:05 -04:00
|
|
|
// test if the binary was correctly installed and runs using 'mavros_posix_silt.launch'
|
2019-01-04 17:34:02 -04:00
|
|
|
sh '''#!/bin/bash -l
|
|
|
|
echo $0;
|
|
|
|
source catkin_ws/devel/setup.bash;
|
|
|
|
rostest px4 pub_test.launch;
|
|
|
|
'''
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'rm -rf catkin_ws'
|
|
|
|
}
|
2018-09-27 20:26:43 -03:00
|
|
|
}
|
|
|
|
options {
|
|
|
|
checkoutToSubdirectory('catkin_ws/src/Firmware')
|
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-11-29 12:31:48 -04:00
|
|
|
stage('Colcon build on ROS2 workspace') {
|
2018-11-29 09:19:00 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-ros2-bouncy:2019-01-01'
|
2018-11-29 09:19:00 -04:00
|
|
|
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;
|
2019-01-04 17:34:02 -04:00
|
|
|
git clone --recursive https://github.com/PX4/sitl_gazebo.git src/mavlink_sitl_gazebo;
|
2018-11-29 09:19:00 -04:00
|
|
|
source /opt/ros/bouncy/setup.sh;
|
2019-01-04 17:34:02 -04:00
|
|
|
source /opt/ros/melodic/setup.sh;
|
2018-11-29 09:19:00 -04:00
|
|
|
colcon build --event-handlers console_direct+ --symlink-install;
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'rm -rf colcon_ws'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
checkoutToSubdirectory('colcon_ws/src/Firmware')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Style check') {
|
2018-05-17 16:20:26 -03:00
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2018-05-17 16:20:26 -03:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'make check_format'
|
|
|
|
}
|
2018-10-15 17:35:02 -03:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'rm -rf catkin_ws'
|
|
|
|
}
|
|
|
|
}
|
2018-05-17 16:20:26 -03:00
|
|
|
}
|
|
|
|
|
2018-11-22 00:27:21 -04:00
|
|
|
stage('Bloaty px4_fmu-v2') {
|
2018-08-04 13:58:09 -03:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-nuttx:2019-01-01'
|
2018-08-04 13:58:09 -03:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -z'
|
|
|
|
sh 'git fetch --tags'
|
2018-11-22 00:27:21 -04:00
|
|
|
sh 'make px4_fmu-v2_default'
|
|
|
|
sh 'make px4_fmu-v2_default bloaty_symbols'
|
|
|
|
sh 'make px4_fmu-v2_default bloaty_compileunits'
|
|
|
|
sh 'make px4_fmu-v2_default bloaty_inlines'
|
|
|
|
sh 'make px4_fmu-v2_default bloaty_templates'
|
|
|
|
sh 'make px4_fmu-v2_default bloaty_compare_master'
|
2018-08-04 13:58:09 -03:00
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2018-08-04 13:58:09 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-11-22 00:27:21 -04:00
|
|
|
stage('Bloaty px4_fmu-v5') {
|
2018-08-04 13:58:09 -03:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-nuttx:2019-01-01'
|
2018-08-04 13:58:09 -03:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -z'
|
|
|
|
sh 'git fetch --tags'
|
2018-11-22 00:27:21 -04:00
|
|
|
sh 'make px4_fmu-v5_default'
|
|
|
|
sh 'make px4_fmu-v5_default bloaty_symbols'
|
|
|
|
sh 'make px4_fmu-v5_default bloaty_compileunits'
|
|
|
|
sh 'make px4_fmu-v5_default bloaty_inlines'
|
|
|
|
sh 'make px4_fmu-v5_default bloaty_templates'
|
|
|
|
sh 'make px4_fmu-v5_default bloaty_compare_master'
|
2018-08-04 13:58:09 -03:00
|
|
|
sh 'make sizes'
|
|
|
|
sh 'ccache -s'
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2018-08-04 13:58:09 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Clang analyzer') {
|
2017-12-15 10:59:15 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-clang:2019-01-01'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 10:59:15 -04:00
|
|
|
sh 'make scan-build'
|
|
|
|
// publish html
|
|
|
|
publishHTML target: [
|
2017-12-15 11:53:55 -04:00
|
|
|
reportTitles: 'clang static analyzer',
|
2017-12-15 10:59:15 -04:00
|
|
|
allowMissing: false,
|
2017-12-15 11:53:55 -04:00
|
|
|
alwaysLinkToLastBuild: true,
|
2017-12-15 10:59:15 -04:00
|
|
|
keepAll: true,
|
2017-12-15 11:53:55 -04:00
|
|
|
reportDir: 'build/scan-build/report_latest',
|
2017-12-15 10:59:15 -04:00
|
|
|
reportFiles: '*',
|
|
|
|
reportName: 'Clang Static Analyzer'
|
|
|
|
]
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
2018-01-01 10:59:22 -04:00
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
2018-08-04 13:23:46 -03:00
|
|
|
branch 'pr-jenkins' // for testing
|
2018-01-01 10:59:22 -04:00
|
|
|
}
|
|
|
|
}
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Clang tidy') {
|
2017-12-15 10:46:38 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-clang:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 10:46:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-10-15 16:12:38 -03:00
|
|
|
retry (3) {
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'make clang-tidy-quiet'
|
|
|
|
}
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2017-12-15 10:46:38 -04:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Cppcheck') {
|
2017-12-15 11:34:24 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-27 21:20:20 -04:00
|
|
|
image 'px4io/px4-dev-base:2019-01-26'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 11:34:24 -04:00
|
|
|
sh 'make cppcheck'
|
|
|
|
// publish html
|
|
|
|
publishHTML target: [
|
2017-12-15 11:53:55 -04:00
|
|
|
reportTitles: 'Cppcheck',
|
2017-12-15 11:34:24 -04:00
|
|
|
allowMissing: false,
|
2017-12-15 11:53:55 -04:00
|
|
|
alwaysLinkToLastBuild: true,
|
2017-12-15 11:34:24 -04:00
|
|
|
keepAll: true,
|
2017-12-15 11:53:55 -04:00
|
|
|
reportDir: 'build/cppcheck/',
|
2017-12-15 11:34:24 -04:00
|
|
|
reportFiles: '*',
|
2017-12-15 11:53:55 -04:00
|
|
|
reportName: 'Cppcheck'
|
2017-12-15 11:34:24 -04:00
|
|
|
]
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
2018-01-01 10:59:22 -04:00
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
2018-08-04 13:23:46 -03:00
|
|
|
branch 'pr-jenkins' // for testing
|
2018-01-01 10:59:22 -04:00
|
|
|
}
|
|
|
|
}
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Check stack') {
|
2017-11-28 13:32:26 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-nuttx:2019-01-01'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
2017-10-30 11:20:23 -03:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2018-11-22 00:27:21 -04:00
|
|
|
sh 'make px4_fmu-v2_default stack_check'
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2018-08-17 22:21:41 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('ShellCheck') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-nuttx:2019-01-01'
|
2018-08-17 22:21:41 -03:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
2018-08-25 14:17:31 -03:00
|
|
|
sh 'make shellcheck_all'
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2017-10-30 11:20:23 -03:00
|
|
|
}
|
|
|
|
}
|
2018-09-22 04:03:59 -03:00
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Module config validation') {
|
2018-09-22 04:03:59 -03:00
|
|
|
agent {
|
|
|
|
docker {
|
2019-01-27 21:20:20 -04:00
|
|
|
image 'px4io/px4-dev-base:2019-01-26'
|
2018-09-22 04:03:59 -03:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
2018-10-15 17:35:02 -03:00
|
|
|
sh 'make distclean'
|
2018-09-22 04:03:59 -03:00
|
|
|
sh 'make validate_module_configs'
|
|
|
|
}
|
2018-10-15 17:35:02 -03:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
2018-09-22 04:03:59 -03:00
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-08-04 13:51:51 -03:00
|
|
|
} // parallel
|
|
|
|
} // stage Analysis
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
stage('Generate Metadata') {
|
2017-12-10 03:32:21 -04:00
|
|
|
|
|
|
|
parallel {
|
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Airframe') {
|
2017-12-10 03:32:21 -04:00
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make airframe_metadata'
|
2018-11-22 00:27:21 -04:00
|
|
|
dir('build/px4_sitl_default/docs') {
|
2018-08-04 19:22:08 -03:00
|
|
|
archiveArtifacts(artifacts: 'airframes.md, airframes.xml')
|
2018-08-04 20:02:23 -03:00
|
|
|
stash includes: 'airframes.md, airframes.xml', name: 'metadata_airframes'
|
2018-08-04 19:22:08 -03:00
|
|
|
}
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Parameter') {
|
2017-12-10 03:32:21 -04:00
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make parameters_metadata'
|
2018-11-22 00:27:21 -04:00
|
|
|
dir('build/px4_sitl_default/docs') {
|
2018-08-04 19:22:08 -03:00
|
|
|
archiveArtifacts(artifacts: 'parameters.md, parameters.xml')
|
2018-08-04 20:02:23 -03:00
|
|
|
stash includes: 'parameters.md, parameters.xml', name: 'metadata_parameters'
|
2018-08-04 19:22:08 -03:00
|
|
|
}
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('Module') {
|
2017-12-10 03:32:21 -04:00
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make module_documentation'
|
2018-11-22 00:27:21 -04:00
|
|
|
dir('build/px4_sitl_default/docs') {
|
2018-08-04 19:22:08 -03:00
|
|
|
archiveArtifacts(artifacts: 'modules/*.md')
|
2018-08-04 20:02:23 -03:00
|
|
|
stash includes: 'modules/*.md', name: 'metadata_module_documentation'
|
2018-08-04 19:22:08 -03:00
|
|
|
}
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
2018-01-05 18:20:39 -04:00
|
|
|
|
2018-10-15 17:35:02 -03:00
|
|
|
stage('uORB graphs') {
|
2018-01-05 18:20:39 -04:00
|
|
|
agent {
|
2018-01-05 23:57:17 -04:00
|
|
|
docker {
|
2019-01-04 17:34:02 -04:00
|
|
|
image 'px4io/px4-dev-nuttx:2019-01-01'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2018-01-05 23:57:17 -04:00
|
|
|
}
|
2018-01-05 18:20:39 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2018-01-05 18:20:39 -04:00
|
|
|
sh 'make uorb_graphs'
|
2018-08-04 19:22:08 -03:00
|
|
|
dir('Tools/uorb_graph') {
|
2018-11-22 00:27:21 -04:00
|
|
|
archiveArtifacts(artifacts: 'graph_px4_sitl.json')
|
|
|
|
stash includes: 'graph_px4_sitl.json', name: 'uorb_graph'
|
2018-08-04 19:22:08 -03:00
|
|
|
}
|
2018-10-15 17:35:02 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
2018-01-05 18:20:39 -04:00
|
|
|
}
|
|
|
|
}
|
2018-08-04 13:51:51 -03:00
|
|
|
|
|
|
|
} // parallel
|
|
|
|
} // stage: Generate Metadata
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-08-04 20:02:23 -03:00
|
|
|
stage('Deploy') {
|
|
|
|
|
|
|
|
parallel {
|
|
|
|
|
|
|
|
stage('Devguide') {
|
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2018-08-04 20:02:23 -03:00
|
|
|
}
|
|
|
|
steps {
|
2018-08-12 14:21:00 -03:00
|
|
|
sh('export')
|
2018-08-04 20:02:23 -03:00
|
|
|
unstash 'metadata_airframes'
|
|
|
|
unstash 'metadata_parameters'
|
|
|
|
unstash 'metadata_module_documentation'
|
2018-08-12 14:21:00 -03:00
|
|
|
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github_personal_token', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
|
2018-08-04 20:02:23 -03:00
|
|
|
sh('git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/Devguide.git')
|
2018-08-12 14:21:00 -03:00
|
|
|
sh('cp airframes.md Devguide/en/airframes/airframe_reference.md')
|
|
|
|
sh('cp parameters.md Devguide/en/advanced/parameter_reference.md')
|
|
|
|
sh('cp -R modules/*.md Devguide/en/middleware/')
|
2018-10-17 11:53:38 -03:00
|
|
|
sh('cd Devguide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
|
|
|
|
sh('cd Devguide; git push origin master || true')
|
2018-12-02 12:11:00 -04:00
|
|
|
sh('rm -rf Devguide')
|
2018-08-04 20:02:23 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'pr-jenkins' // for testing
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Userguide') {
|
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2018-08-04 20:02:23 -03:00
|
|
|
}
|
|
|
|
steps {
|
2018-08-12 14:21:00 -03:00
|
|
|
sh('export')
|
2018-08-04 20:02:23 -03:00
|
|
|
unstash 'metadata_airframes'
|
|
|
|
unstash 'metadata_parameters'
|
2018-08-12 14:21:00 -03:00
|
|
|
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github_personal_token', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
|
2018-08-04 20:02:23 -03:00
|
|
|
sh('git clone https://${GIT_USER}:${GIT_PASS}@github.com/PX4/px4_user_guide.git')
|
2018-08-12 14:21:00 -03:00
|
|
|
sh('cp airframes.md px4_user_guide/en/airframes/airframe_reference.md')
|
|
|
|
sh('cp parameters.md px4_user_guide/en/advanced_config/parameter_reference.md')
|
2018-10-17 11:53:38 -03:00
|
|
|
sh('cd px4_user_guide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
|
|
|
|
sh('cd px4_user_guide; git push origin master || true')
|
2018-12-02 12:11:00 -04:00
|
|
|
sh('rm -rf px4_user_guide')
|
2018-08-04 20:02:23 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'pr-jenkins' // for testing
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('QGroundControl') {
|
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2018-08-04 20:02:23 -03:00
|
|
|
}
|
|
|
|
steps {
|
2018-08-12 14:21:00 -03:00
|
|
|
sh('export')
|
2018-08-04 20:02:23 -03:00
|
|
|
unstash 'metadata_airframes'
|
|
|
|
unstash 'metadata_parameters'
|
2018-08-12 14:21:00 -03:00
|
|
|
withCredentials([usernamePassword(credentialsId: 'px4buildbot_github_personal_token', passwordVariable: 'GIT_PASS', usernameVariable: 'GIT_USER')]) {
|
2018-08-04 20:02:23 -03:00
|
|
|
sh('git clone https://${GIT_USER}:${GIT_PASS}@github.com/mavlink/qgroundcontrol.git')
|
2018-08-12 14:21:00 -03:00
|
|
|
sh('cp airframes.xml qgroundcontrol/src/AutoPilotPlugins/PX4/AirframeFactMetaData.xml')
|
|
|
|
sh('cp parameters.xml qgroundcontrol/src/FirmwarePlugin/PX4/PX4ParameterFactMetaData.xml')
|
2018-10-17 11:53:38 -03:00
|
|
|
sh('cd qgroundcontrol; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
|
|
|
|
sh('cd qgroundcontrol; git push origin master || true')
|
2018-12-02 12:11:00 -04:00
|
|
|
sh('rm -rf qgroundcontrol')
|
2018-08-04 20:02:23 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'pr-jenkins' // for testing
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-17 23:00:01 -03:00
|
|
|
stage('S3') {
|
|
|
|
agent {
|
2019-01-27 21:20:20 -04:00
|
|
|
docker { image 'px4io/px4-dev-base:2019-01-26' }
|
2018-08-17 23:00:01 -03:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh('export')
|
|
|
|
unstash 'metadata_airframes'
|
|
|
|
unstash 'metadata_parameters'
|
|
|
|
sh('ls')
|
|
|
|
withAWS(credentials: 'px4_aws_s3_key', region: 'us-east-1') {
|
|
|
|
s3Upload(acl: 'PublicRead', bucket: 'px4-travis', file: 'airframes.xml', path: 'Firmware/master/')
|
|
|
|
s3Upload(acl: 'PublicRead', bucket: 'px4-travis', file: 'parameters.xml', path: 'Firmware/master/')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'pr-jenkins' // for testing
|
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-04 20:02:23 -03:00
|
|
|
} // parallel
|
|
|
|
} // stage: Generate Metadata
|
|
|
|
|
2018-03-23 02:09:33 -03:00
|
|
|
} // stages
|
|
|
|
|
2018-02-05 15:08:27 -04:00
|
|
|
environment {
|
|
|
|
CCACHE_DIR = '/tmp/ccache'
|
|
|
|
CI = true
|
2018-08-12 14:21:00 -03:00
|
|
|
GIT_AUTHOR_EMAIL = "bot@px4.io"
|
2018-08-04 20:02:23 -03:00
|
|
|
GIT_AUTHOR_NAME = "PX4BuildBot"
|
2018-08-12 14:21:00 -03:00
|
|
|
GIT_COMMITTER_EMAIL = "bot@px4.io"
|
2018-08-04 20:02:23 -03:00
|
|
|
GIT_COMMITTER_NAME = "PX4BuildBot"
|
2018-02-05 15:08:27 -04:00
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
options {
|
2018-11-30 08:54:11 -04:00
|
|
|
buildDiscarder(logRotator(numToKeepStr: '5', artifactDaysToKeepStr: '30'))
|
2017-12-10 03:32:21 -04:00
|
|
|
timeout(time: 60, unit: 'MINUTES')
|
2017-10-27 11:47:38 -03:00
|
|
|
}
|
2017-11-05 16:04:14 -04:00
|
|
|
}
|