2017-10-27 11:47:38 -03:00
|
|
|
pipeline {
|
2017-11-28 13:32:26 -04:00
|
|
|
agent none
|
2017-10-27 11:47:38 -03:00
|
|
|
stages {
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-10-30 11:20:23 -03:00
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2017-11-28 13:32:26 -04:00
|
|
|
script {
|
|
|
|
def builds = [:]
|
|
|
|
|
2018-03-23 02:09:33 -03:00
|
|
|
def docker_base = "px4io/px4-dev-base:2018-03-30"
|
|
|
|
def docker_nuttx = "px4io/px4-dev-nuttx:2018-03-30"
|
2018-04-02 13:05:49 -03:00
|
|
|
def docker_ros = "px4io/px4-dev-ros:2018-03-30"
|
2018-03-23 02:09:33 -03:00
|
|
|
def docker_rpi = "px4io/px4-dev-raspi:2018-03-30"
|
|
|
|
def docker_armhf = "px4io/px4-dev-armhf:2017-12-30"
|
|
|
|
def docker_arch = "px4io/px4-dev-base-archlinux:2018-03-30"
|
2018-04-02 13:05:49 -03:00
|
|
|
def docker_snapdragon = "lorenzmeier/px4-dev-snapdragon:2017-12-29"
|
|
|
|
def docker_clang = "px4io/px4-dev-clang:2018-03-30"
|
2018-03-23 02:09:33 -03:00
|
|
|
|
|
|
|
// fmu-v2_{default, lpe} and fmu-v3_{default, rtps}
|
|
|
|
// bloaty compare to last successful master build
|
2017-12-10 03:32:21 -04:00
|
|
|
builds["px4fmu-v2"] = {
|
|
|
|
node {
|
2018-03-23 02:09:33 -03:00
|
|
|
stage("Build Test px4fmu-v2") {
|
|
|
|
docker.image(docker_nuttx).inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
|
|
|
stage("px4fmu-v2") {
|
2017-12-10 03:32:21 -04:00
|
|
|
checkout scm
|
2018-02-05 15:08:27 -04:00
|
|
|
sh "export"
|
2018-01-09 02:12:55 -04:00
|
|
|
sh "make distclean"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "ccache -z"
|
|
|
|
sh "git fetch --tags"
|
2018-05-17 16:20:26 -03:00
|
|
|
sh "make nuttx_px4io-v2_default"
|
|
|
|
sh "make nuttx_px4io-v2_default bloaty_symbols"
|
|
|
|
sh "make nuttx_px4io-v2_default bloaty_compileunits"
|
|
|
|
sh "make nuttx_px4io-v2_default bloaty_compare_master"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "make nuttx_px4fmu-v2_default"
|
2018-05-17 16:20:26 -03:00
|
|
|
sh "make nuttx_px4fmu-v2_default bloaty_symbols"
|
|
|
|
sh "make nuttx_px4fmu-v2_default bloaty_compileunits"
|
|
|
|
sh "make nuttx_px4fmu-v2_default bloaty_inlines"
|
|
|
|
sh "make nuttx_px4fmu-v2_default bloaty_templates"
|
|
|
|
sh "make nuttx_px4fmu-v2_default bloaty_compare_master"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "make nuttx_px4fmu-v2_lpe"
|
2018-04-07 22:45:09 -03:00
|
|
|
sh "make nuttx_px4fmu-v2_test"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "make nuttx_px4fmu-v3_default"
|
|
|
|
sh "make nuttx_px4fmu-v3_rtps"
|
2017-12-10 14:50:30 -04:00
|
|
|
sh "make sizes"
|
2017-12-10 03:32:21 -04:00
|
|
|
sh "ccache -s"
|
2018-03-23 02:09:33 -03:00
|
|
|
archiveArtifacts(allowEmptyArchive: true, artifacts: 'build/**/*.px4, build/**/*.elf', fingerprint: true, onlyIfSuccessful: true)
|
|
|
|
sh "make distclean"
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// nuttx default targets that are archived and uploaded to s3
|
Initial omnibusf4sd target support
Flight tested: ekf2 w/ mag and compass by @nathantsoi: https://logs.px4.io/plot_app?log=79b81031-cf1e-41f0-890b-d6cd7d559766
NOTE: external I2C devices need a pullup. I have tested with a 3.3v 2.2k pullup.
Working:
- mpu6000, bench tested and verified via nsh
- fmu
- all 6 ch output bench tested w/ pwm and oneshot via nsh
- ppm input bench tested
- dsm input bench tested
- bmp280, bench tested and verified via nsh
- hmc5883, bench tested and verified via nsh, but requires an external i2c pullup
- gps on uart6
- startuplog, nsh, mavlink on uart4, but params are not sent for some reason. RSSI pin is TX, MOTOR 5 is RX (normal mode, 57600 baud)
- rgbled over i2c, bench tested and workingp
- sbus via the shared sbus/ppm pin (which includes an inverter to the mcu SBUS in pin), remove the solder bridge or jumper to the ppm pin before use
Not yet implemented:
- ADC
- OSD: passthrough video is untested, use at your own risk until a basic driver is implemented.
2018-03-27 23:01:20 -03:00
|
|
|
for (def option in ["px4fmu-v4", "px4fmu-v4pro", "px4fmu-v5", "aerofc-v1", "aerocore2", "auav-x21", "crazyflie", "mindpx-v2", "nxphlite-v3", "tap-v1", "omnibus-f4sd"]) {
|
2017-12-10 14:50:30 -04:00
|
|
|
def node_name = "${option}"
|
2018-03-23 02:09:33 -03:00
|
|
|
builds[node_name] = createBuildNode(docker_nuttx, "${node_name}_default")
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
|
2017-12-10 03:32:21 -04:00
|
|
|
// other nuttx default targets
|
2017-12-10 14:50:30 -04:00
|
|
|
for (def option in ["px4-same70xplained-v1", "px4-stm32f4discovery", "px4cannode-v1", "px4esc-v1", "px4nucleoF767ZI-v1", "s2740vc-v1"]) {
|
|
|
|
def node_name = "${option}"
|
2018-03-23 02:09:33 -03:00
|
|
|
builds[node_name] = createBuildNode(docker_nuttx, "${node_name}_default")
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
|
2018-04-02 13:05:49 -03:00
|
|
|
builds["sitl"] = createBuildNode(docker_base, 'posix_sitl_default')
|
|
|
|
builds["sitl_rtps"] = createBuildNode(docker_base, 'posix_sitl_rtps')
|
|
|
|
builds["sitl (GCC 7)"] = createBuildNode(docker_arch, 'posix_sitl_default')
|
2017-11-28 13:32:26 -04:00
|
|
|
|
2018-04-02 13:05:49 -03:00
|
|
|
builds["rpi"] = createBuildNode(docker_rpi, 'posix_rpi_cross')
|
|
|
|
builds["bebop"] = createBuildNode(docker_rpi, 'posix_bebop_default')
|
2017-11-28 13:32:26 -04:00
|
|
|
|
2018-04-02 13:05:49 -03:00
|
|
|
builds["ocpoc"] = createBuildNode(docker_armhf, 'posix_ocpoc_ubuntu')
|
2017-12-06 08:04:01 -04:00
|
|
|
|
2018-04-02 13:05:49 -03:00
|
|
|
// snapdragon (eagle_default)
|
|
|
|
builds["eagle (linux)"] = createBuildNodeDockerLogin(docker_snapdragon, 'docker_hub_dagar', 'posix_eagle_default')
|
|
|
|
builds["eagle (qurt)"] = createBuildNodeDockerLogin(docker_snapdragon, 'docker_hub_dagar', 'qurt_eagle_default')
|
2017-12-15 10:55:34 -04:00
|
|
|
|
2018-05-02 10:47:12 -03:00
|
|
|
// posix_sitl_default with package
|
|
|
|
builds["sitl"] = {
|
|
|
|
node {
|
|
|
|
stage("Build Test sitl") {
|
|
|
|
docker.image(docker_ros).inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE') {
|
|
|
|
stage("sitl") {
|
|
|
|
checkout scm
|
|
|
|
sh "export"
|
|
|
|
sh "make distclean"
|
|
|
|
sh "ccache -z"
|
|
|
|
sh "make posix_sitl_default"
|
|
|
|
sh "make posix_sitl_default sitl_gazebo"
|
|
|
|
sh "make posix_sitl_default package"
|
2018-05-07 13:38:53 -03:00
|
|
|
sh "ccache -s"
|
|
|
|
stash name: "px4_sitl_package", includes: "build/posix_sitl_default/*.bz2"
|
2018-05-02 10:47:12 -03:00
|
|
|
sh "make distclean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-12 13:19:44 -03:00
|
|
|
// MAC OS posix_sitl_default
|
|
|
|
builds["sitl (OSX)"] = {
|
2018-04-14 00:35:06 -03:00
|
|
|
node("mac") {
|
|
|
|
withEnv(["CCACHE_BASEDIR=${pwd()}"]) {
|
|
|
|
stage("sitl (OSX)") {
|
|
|
|
checkout scm
|
|
|
|
sh "export"
|
|
|
|
sh "make distclean"
|
|
|
|
sh "ccache -z"
|
|
|
|
sh "make posix_sitl_default"
|
|
|
|
sh "ccache -s"
|
|
|
|
sh "make distclean"
|
|
|
|
}
|
2018-04-12 13:19:44 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// MAC OS nuttx_px4fmu-v4pro_default
|
|
|
|
builds["px4fmu-v4pro (OSX)"] = {
|
2018-04-14 00:35:06 -03:00
|
|
|
node("mac") {
|
|
|
|
withEnv(["CCACHE_BASEDIR=${pwd()}"]) {
|
|
|
|
stage("px4fmu-v4pro (OSX)") {
|
|
|
|
checkout scm
|
|
|
|
sh "export"
|
|
|
|
sh "make distclean"
|
|
|
|
sh "ccache -z"
|
|
|
|
sh "make nuttx_px4fmu-v4pro_default"
|
|
|
|
sh "ccache -s"
|
|
|
|
sh "make distclean"
|
|
|
|
}
|
2018-04-12 13:19:44 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
parallel builds
|
2018-03-23 02:09:33 -03:00
|
|
|
} // script
|
|
|
|
} // steps
|
|
|
|
} // stage Builds
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
stage('Test') {
|
2017-10-30 11:20:23 -03:00
|
|
|
parallel {
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-05-17 16:20:26 -03:00
|
|
|
stage('Style Check') {
|
|
|
|
agent {
|
|
|
|
docker { image 'px4io/px4-dev-base:2018-03-30' }
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh 'make check_format'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-15 10:59:15 -04:00
|
|
|
stage('clang analyzer') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-clang:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 10:59:15 -04:00
|
|
|
sh 'make scan-build'
|
|
|
|
// publish html
|
|
|
|
publishHTML target: [
|
2017-12-15 11:53:55 -04:00
|
|
|
reportTitles: 'clang static analyzer',
|
2017-12-15 10:59:15 -04:00
|
|
|
allowMissing: false,
|
2017-12-15 11:53:55 -04:00
|
|
|
alwaysLinkToLastBuild: true,
|
2017-12-15 10:59:15 -04:00
|
|
|
keepAll: true,
|
2017-12-15 11:53:55 -04:00
|
|
|
reportDir: 'build/scan-build/report_latest',
|
2017-12-15 10:59:15 -04:00
|
|
|
reportFiles: '*',
|
|
|
|
reportName: 'Clang Static Analyzer'
|
|
|
|
]
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
2018-01-01 10:59:22 -04:00
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
|
|
|
}
|
|
|
|
}
|
2017-12-15 10:59:15 -04:00
|
|
|
}
|
|
|
|
|
2017-12-15 10:46:38 -04:00
|
|
|
stage('clang tidy') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-clang:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 10:46:38 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 10:46:38 -04:00
|
|
|
sh 'make clang-tidy-quiet'
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2017-12-15 10:46:38 -04:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-12-15 11:34:24 -04:00
|
|
|
stage('cppcheck') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-base:ubuntu17.10'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-12-15 11:34:24 -04:00
|
|
|
sh 'make cppcheck'
|
|
|
|
// publish html
|
|
|
|
publishHTML target: [
|
2017-12-15 11:53:55 -04:00
|
|
|
reportTitles: 'Cppcheck',
|
2017-12-15 11:34:24 -04:00
|
|
|
allowMissing: false,
|
2017-12-15 11:53:55 -04:00
|
|
|
alwaysLinkToLastBuild: true,
|
2017-12-15 11:34:24 -04:00
|
|
|
keepAll: true,
|
2017-12-15 11:53:55 -04:00
|
|
|
reportDir: 'build/cppcheck/',
|
2017-12-15 11:34:24 -04:00
|
|
|
reportFiles: '*',
|
2017-12-15 11:53:55 -04:00
|
|
|
reportName: 'Cppcheck'
|
2017-12-15 11:34:24 -04:00
|
|
|
]
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
2018-01-01 10:59:22 -04:00
|
|
|
when {
|
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
|
|
|
}
|
|
|
|
}
|
2017-12-15 11:34:24 -04:00
|
|
|
}
|
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
stage('tests') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-base:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
2017-10-30 11:20:23 -03:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-01-09 02:12:55 -04:00
|
|
|
sh 'make distclean'
|
2017-11-28 18:32:55 -04:00
|
|
|
sh 'make posix_sitl_default test_results_junit'
|
2017-11-28 13:32:26 -04:00
|
|
|
junit 'build/posix_sitl_default/JUnitTestResults.xml'
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2017-10-30 11:20:23 -03:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2018-05-05 17:55:36 -03:00
|
|
|
stage('test mission (code coverage)') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean; rm -rf .ros; rm -rf .gazebo'
|
|
|
|
sh 'make tests_mission_coverage'
|
|
|
|
withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
|
|
|
|
sh 'curl -s https://codecov.io/bash | bash -s'
|
|
|
|
}
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-05 18:56:11 -03:00
|
|
|
stage('tests (address sanitizer)') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-base:2018-03-30'
|
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
environment {
|
|
|
|
PX4_ASAN = 1
|
|
|
|
ASAN_OPTIONS = "color=always:check_initialization_order=1:detect_stack_use_after_return=1"
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'make tests'
|
|
|
|
sh 'make distclean'
|
2018-05-05 17:55:36 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('tests (code coverage)') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'ulimit -c unlimited; make tests_coverage'
|
|
|
|
sh 'ls'
|
|
|
|
withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) {
|
|
|
|
sh 'curl -s https://codecov.io/bash | bash -s'
|
|
|
|
}
|
|
|
|
sh 'make distclean'
|
2018-05-05 18:56:11 -03:00
|
|
|
}
|
2018-05-17 21:08:03 -03:00
|
|
|
post {
|
|
|
|
failure {
|
|
|
|
sh('find . -name core')
|
|
|
|
sh('gdb --batch --quiet -ex "thread apply all bt full" -ex "quit" build/posix_sitl_default/px4 core')
|
|
|
|
}
|
|
|
|
}
|
2018-05-05 18:56:11 -03:00
|
|
|
}
|
|
|
|
|
2018-04-12 17:06:53 -03:00
|
|
|
stage('check stack') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-nuttx:2018-03-30'
|
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'export'
|
|
|
|
sh 'make distclean'
|
|
|
|
sh 'make px4fmu-v2_default stack_check'
|
|
|
|
sh 'make distclean'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-19 00:32:36 -03:00
|
|
|
stage('ROS vtol standard mission') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_new_1 vehicle:=standard_vtol'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-02 00:29:03 -04:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-04-14 00:26:31 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('ROS vtol tailsitter mission') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2018-04-14 00:26:31 -03:00
|
|
|
steps {
|
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_new_1 vehicle:=tailsitter'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2018-04-14 00:26:31 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-04-14 00:26:31 -03:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
|
|
|
}
|
|
|
|
failure {
|
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-04-19 00:32:36 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('ROS vtol tiltrotor mission') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2018-04-19 00:32:36 -03:00
|
|
|
steps {
|
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_new_1 vehicle:=tiltrotor'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2018-04-19 00:32:36 -03:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-04-19 00:32:36 -03:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
|
|
|
}
|
|
|
|
failure {
|
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission new 2') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_new_2 vehicle:=standard_vtol'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-02 00:29:03 -04:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission old 1') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_old_1 vehicle:=standard_vtol'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-02 00:29:03 -04:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS vtol mission old 2') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=vtol_old_2 vehicle:=standard_vtol'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-02 00:29:03 -04:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-31 23:57:45 -04:00
|
|
|
stage('ROS MC mission box') {
|
2017-12-10 21:19:03 -04:00
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_test_mission.test mission:=multirotor_box vehicle:=iris'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-02 00:29:03 -04:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('ROS offboard att') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
2018-05-24 18:52:39 -03:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout()
|
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_tests_offboard_attctl.test'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-02 00:29:03 -04:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('ROS offboard pos') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-ros:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw -e HOME=$WORKSPACE'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-05-27 14:13:15 -03:00
|
|
|
sh 'rm -rf build; rm -rf .ros; rm -rf .gazebo'
|
2018-05-02 10:47:12 -03:00
|
|
|
unstash 'px4_sitl_package'
|
2018-05-07 13:38:53 -03:00
|
|
|
sh 'tar -xjpf build/posix_sitl_default/px4-posix_sitl_default*.bz2'
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/test/rostest_px4_run.sh mavros_posix_tests_offboard_posctl.test'
|
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py `find . -name *.ulg -print -quit`'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
post {
|
2018-03-30 11:39:20 -03:00
|
|
|
always {
|
2018-05-24 18:11:08 -03:00
|
|
|
sh 'px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/rootfs/fs/microsd/log/*/*.ulg'
|
2018-02-02 00:29:03 -04:00
|
|
|
archiveArtifacts '.ros/**/*.pdf'
|
|
|
|
archiveArtifacts '.ros/**/*.csv'
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
2018-01-02 10:35:31 -04:00
|
|
|
failure {
|
2018-03-01 12:56:21 -04:00
|
|
|
archiveArtifacts '.ros/**/*.ulg'
|
|
|
|
archiveArtifacts '.ros/**/rosunit-*.xml'
|
|
|
|
archiveArtifacts '.ros/**/rostest-*.log'
|
2018-01-02 10:35:31 -04:00
|
|
|
}
|
2017-12-10 21:19:03 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-30 11:20:23 -03:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-11-28 13:32:26 -04:00
|
|
|
stage('Generate Metadata') {
|
2017-12-10 03:32:21 -04:00
|
|
|
|
|
|
|
parallel {
|
|
|
|
|
|
|
|
stage('airframe') {
|
|
|
|
agent {
|
2018-03-30 15:01:29 -03:00
|
|
|
docker { image 'px4io/px4-dev-base:2018-03-30' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make airframe_metadata'
|
|
|
|
archiveArtifacts(artifacts: 'airframes.md, airframes.xml', fingerprint: true)
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('parameter') {
|
|
|
|
agent {
|
2018-03-30 15:01:29 -03:00
|
|
|
docker { image 'px4io/px4-dev-base:2018-03-30' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make parameters_metadata'
|
|
|
|
archiveArtifacts(artifacts: 'parameters.md, parameters.xml', fingerprint: true)
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('module') {
|
|
|
|
agent {
|
2018-03-30 15:01:29 -03:00
|
|
|
docker { image 'px4io/px4-dev-base:2018-03-30' }
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
sh 'make module_documentation'
|
|
|
|
archiveArtifacts(artifacts: 'modules/*.md', fingerprint: true)
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2017-12-10 03:32:21 -04:00
|
|
|
}
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
2018-01-05 18:20:39 -04:00
|
|
|
|
|
|
|
stage('uorb graphs') {
|
|
|
|
agent {
|
2018-01-05 23:57:17 -04:00
|
|
|
docker {
|
2018-03-30 15:01:29 -03:00
|
|
|
image 'px4io/px4-dev-nuttx:2018-03-30'
|
2018-02-05 15:08:27 -04:00
|
|
|
args '-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw'
|
2018-01-05 23:57:17 -04:00
|
|
|
}
|
2018-01-05 18:20:39 -04:00
|
|
|
}
|
|
|
|
steps {
|
2018-02-05 15:08:27 -04:00
|
|
|
sh 'export'
|
2018-02-02 01:09:29 -04:00
|
|
|
sh 'make distclean'
|
2018-01-05 18:20:39 -04:00
|
|
|
sh 'make uorb_graphs'
|
|
|
|
archiveArtifacts(artifacts: 'Tools/uorb_graph/graph_sitl.json')
|
2018-03-23 02:09:33 -03:00
|
|
|
sh 'make distclean'
|
2018-01-05 18:20:39 -04:00
|
|
|
}
|
|
|
|
}
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
|
|
|
}
|
2017-12-06 20:25:15 -04:00
|
|
|
|
2017-10-30 16:05:37 -03:00
|
|
|
stage('S3 Upload') {
|
2017-11-28 13:32:26 -04:00
|
|
|
agent {
|
2018-03-30 15:01:29 -03:00
|
|
|
docker { image 'px4io/px4-dev-base:2018-03-30' }
|
2017-11-28 13:32:26 -04:00
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
|
2017-10-30 16:05:37 -03:00
|
|
|
when {
|
2017-12-10 03:32:21 -04:00
|
|
|
anyOf {
|
|
|
|
branch 'master'
|
|
|
|
branch 'beta'
|
|
|
|
branch 'stable'
|
|
|
|
}
|
2017-10-30 16:05:37 -03:00
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
|
2017-10-30 16:05:37 -03:00
|
|
|
steps {
|
|
|
|
sh 'echo "uploading to S3"'
|
2017-10-27 11:47:38 -03:00
|
|
|
}
|
|
|
|
}
|
2018-03-23 02:09:33 -03:00
|
|
|
} // stages
|
|
|
|
|
2018-02-05 15:08:27 -04:00
|
|
|
environment {
|
|
|
|
CCACHE_DIR = '/tmp/ccache'
|
|
|
|
CI = true
|
|
|
|
}
|
2017-12-10 03:32:21 -04:00
|
|
|
options {
|
2018-03-23 02:09:33 -03:00
|
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactDaysToKeepStr: '30'))
|
2017-12-10 03:32:21 -04:00
|
|
|
timeout(time: 60, unit: 'MINUTES')
|
2017-10-27 11:47:38 -03:00
|
|
|
}
|
2017-11-05 16:04:14 -04:00
|
|
|
}
|
2018-03-23 02:09:33 -03:00
|
|
|
|
|
|
|
def createBuildNode(String docker_repo, String target) {
|
|
|
|
return {
|
|
|
|
node {
|
|
|
|
docker.image(docker_repo).inside('-e CCACHE_BASEDIR=${WORKSPACE} -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
|
|
|
stage(target) {
|
|
|
|
sh('export')
|
|
|
|
checkout scm
|
|
|
|
sh('make distclean')
|
|
|
|
sh('git fetch --tags')
|
|
|
|
sh('ccache -z')
|
|
|
|
sh('make ' + target)
|
|
|
|
sh('ccache -s')
|
|
|
|
sh('make sizes')
|
|
|
|
archiveArtifacts(allowEmptyArchive: true, artifacts: 'build/**/*.px4, build/**/*.elf', fingerprint: true, onlyIfSuccessful: true)
|
|
|
|
sh('make distclean')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-04-02 13:05:49 -03:00
|
|
|
|
|
|
|
def createBuildNodeDockerLogin(String docker_repo, String docker_credentials, String target) {
|
|
|
|
return {
|
|
|
|
node {
|
|
|
|
docker.withRegistry('https://registry.hub.docker.com', docker_credentials) {
|
|
|
|
docker.image(docker_repo).inside('-e CCACHE_BASEDIR=$WORKSPACE -v ${CCACHE_DIR}:${CCACHE_DIR}:rw') {
|
|
|
|
stage(target) {
|
|
|
|
sh('export')
|
|
|
|
checkout scm
|
|
|
|
sh('make distclean')
|
|
|
|
sh('git fetch --tags')
|
|
|
|
sh('ccache -z')
|
|
|
|
sh('make ' + target)
|
|
|
|
sh('ccache -s')
|
|
|
|
sh('make sizes')
|
|
|
|
archiveArtifacts(allowEmptyArchive: true, artifacts: 'build/**/*.px4, build/**/*.elf', fingerprint: true, onlyIfSuccessful: true)
|
|
|
|
sh('make distclean')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|