You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
703 B
36 lines
703 B
6 years ago
|
#!/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'
|
||
|
sh 'make emlid_navio2_native'
|
||
|
sh 'ccache -s'
|
||
|
sh 'cd build/emlid_navio2_native/ && ./bin/px4 -s ../../posix-configs/rpi/px4_test.config'
|
||
|
}
|
||
|
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')
|
||
|
}
|
||
|
}
|