2017-10-27 11:47:38 -03:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
2017-11-14 11:01:07 -04:00
|
|
|
image 'px4io/px4-dev-simulation:2017-10-23'
|
2017-10-30 11:20:23 -03:00
|
|
|
args '--env CCACHE_DISABLE=1 --env CI=true'
|
2017-10-27 11:47:38 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
2017-10-30 11:20:23 -03:00
|
|
|
stage('Quality Checks') {
|
2017-10-27 11:47:38 -03:00
|
|
|
steps {
|
2017-10-30 11:20:23 -03:00
|
|
|
sh 'make check_format'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
sh 'make nuttx_px4fmu-v2_default'
|
|
|
|
archiveArtifacts 'build/*/*.px4'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2017-11-05 16:04:14 -04:00
|
|
|
sh 'make posix_sitl_default test_results_junit'
|
|
|
|
junit 'build/posix_sitl_default/JUnitTestResults.xml'
|
2017-10-30 11:20:23 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-10-30 16:05:37 -03:00
|
|
|
stage('S3 Upload') {
|
|
|
|
when {
|
|
|
|
branch 'master|beta|stable'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'echo "uploading to S3"'
|
2017-10-27 11:47:38 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-11-05 16:04:14 -04:00
|
|
|
}
|