mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
- consolidate cross and native variants (only a single default is needed) - beaglebone_blue_cross + beaglebone_blue_native => beaglebone_blue_default - emlid_navio2_cross + emlid_navio2_native => emlid_navio2_default - px4_raspberrypi_cross + px4_raspberrypi_native => px4_raspberrypi_default - move upload helpers to cmake/upload.cmake
42 lines
842 B
Groovy
42 lines
842 B
Groovy
#!/usr/bin/env groovy
|
|
|
|
pipeline {
|
|
agent none
|
|
stages {
|
|
stage('Build and Verify') {
|
|
|
|
agent {
|
|
label 'navio2'
|
|
}
|
|
steps {
|
|
sh 'export'
|
|
sh 'make distclean'
|
|
sh 'ccache -s'
|
|
sh 'git fetch --tags'
|
|
sh 'CCACHE_BASEDIR=${WORKSPACE} make emlid_navio2_default'
|
|
sh 'ccache -s'
|
|
// sanity check
|
|
sh 'cd build/emlid_navio2_default/ && ./bin/px4 -s ../../posix-configs/rpi/px4_test.config'
|
|
}
|
|
post {
|
|
always {
|
|
sh 'make distclean'
|
|
}
|
|
}
|
|
options {
|
|
timeout(time: 60, unit: 'MINUTES')
|
|
}
|
|
|
|
}
|
|
|
|
} // stages
|
|
environment {
|
|
CCACHE_DIR = '/tmp/ccache'
|
|
CI = true
|
|
}
|
|
options {
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactDaysToKeepStr: '20'))
|
|
timeout(time: 60, unit: 'MINUTES')
|
|
}
|
|
}
|