mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
JenkinsFile updates (#8210)
- check format first - build on nuttx_px4fmu-v2_default - generate all metadata - stubs for deploying metadata and binaries
This commit is contained in:
91
Jenkinsfile
vendored
91
Jenkinsfile
vendored
@@ -2,20 +2,93 @@ pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image 'px4io/px4-dev-simulation:2017-09-26'
|
||||
args '--env=CCACHE_DISABLE --env=CI'
|
||||
args '--env CCACHE_DISABLE=1 --env CI=true'
|
||||
}
|
||||
|
||||
}
|
||||
stages {
|
||||
stage('Quick Check') {
|
||||
stage('Quality Checks') {
|
||||
steps {
|
||||
sh '''make distclean;
|
||||
make posix_sitl_default;'''
|
||||
sh 'make check_format'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
parallel {
|
||||
stage('posix_sitl_default') {
|
||||
steps {
|
||||
sh 'make posix_sitl_default'
|
||||
}
|
||||
}
|
||||
stage('nuttx_px4fmu-v2_default') {
|
||||
steps {
|
||||
sh 'make nuttx_px4fmu-v2_default'
|
||||
archiveArtifacts 'build/*/*.px4'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'make tests'
|
||||
}
|
||||
}
|
||||
stage('Generate Metadata') {
|
||||
parallel {
|
||||
stage('airframe') {
|
||||
steps {
|
||||
sh 'make airframe_metadata'
|
||||
archiveArtifacts 'airframes.md, airframes.xml'
|
||||
}
|
||||
}
|
||||
stage('parameters') {
|
||||
steps {
|
||||
sh 'make parameters_metadata'
|
||||
archiveArtifacts 'parameters.md, parameters.xml'
|
||||
}
|
||||
}
|
||||
stage('modules') {
|
||||
steps {
|
||||
sh 'make module_documentation'
|
||||
archiveArtifacts 'modules/*.md'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
parallel {
|
||||
stage('Dev Guide Update') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'git clone https://github.com/PX4/Devguide.git'
|
||||
}
|
||||
}
|
||||
stage('User Guide Update') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'git clone https://github.com/PX4/px4_user_guide.git'
|
||||
}
|
||||
}
|
||||
stage('QGC Metadata Update') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'git clone https://github.com/mavlink/qgroundcontrol.git'
|
||||
}
|
||||
}
|
||||
stage('S3 Upload') {
|
||||
when {
|
||||
branch 'master|beta|stable'
|
||||
}
|
||||
steps {
|
||||
sh 'echo "uploading to S3"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
environment {
|
||||
CI = '1'
|
||||
CCACHE_DISABLE = '1'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user