2019-08-22 16:09:04 -03:00
|
|
|
#!/usr/bin/env groovy
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent none
|
|
|
|
stages {
|
|
|
|
stage('Build and Verify') {
|
|
|
|
|
|
|
|
agent {
|
|
|
|
label 'navio2'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ccache -z'
|
|
|
|
sh 'git fetch --tags'
|
2019-08-22 16:46:39 -03:00
|
|
|
sh 'CCACHE_BASEDIR=${WORKSPACE} make emlid_navio2_native'
|
2019-08-22 16:09:04 -03:00
|
|
|
sh 'ccache -s'
|
2019-08-22 17:20:39 -03:00
|
|
|
// sanity check
|
2019-08-22 16:46:39 -03:00
|
|
|
sh 'cd build/emlid_navio2_native/ && ./bin/px4 -s ../../posix-configs/rpi/px4_test.config'
|
2019-08-22 16:09:04 -03:00
|
|
|
}
|
2019-08-22 17:20:39 -03:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
2019-08-22 16:09:04 -03:00
|
|
|
options {
|
|
|
|
timeout(time: 30, unit: 'MINUTES')
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} // stages
|
|
|
|
environment {
|
|
|
|
CCACHE_DIR = '/tmp/ccache'
|
|
|
|
CI = true
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '20', artifactDaysToKeepStr: '30'))
|
|
|
|
timeout(time: 60, unit: 'MINUTES')
|
|
|
|
}
|
|
|
|
}
|