From 8e0e846e6eebdfd544bc604421e547c4d0a402e2 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 14 Jun 2019 13:13:00 -0400 Subject: [PATCH] Jenkins hardware target different V5 variants --- .ci/Jenkinsfile-hardware | 96 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/.ci/Jenkinsfile-hardware b/.ci/Jenkinsfile-hardware index 59c67f1008..373730fe45 100644 --- a/.ci/Jenkinsfile-hardware +++ b/.ci/Jenkinsfile-hardware @@ -303,6 +303,102 @@ pipeline { } } + stage('px4_fmu-v5_default (pixhawk 4)') { + agent { + label 'pixhawk_4' + } + steps { + script { + try { + sh 'export' + sh 'find /dev/serial' + unstash 'px4_fmu-v5_default' + sh './platforms/nuttx/Debug/jlink_gdb_upload.sh build/px4_fmu-v5_default/px4_fmu-v5_default.elf' + sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600' + sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`' + } catch (Exception err) { + // always report passed for now + currentBuild.result = 'SUCCESS' + } + } // script + } + options { + timeout(time: 600, unit: 'SECONDS') + } + } + + stage('px4_fmu-v5_default (pixhawk 4 mini)') { + agent { + label 'pixhawk_4_mini' + } + steps { + script { + try { + sh 'export' + sh 'find /dev/serial' + unstash 'px4_fmu-v5_default' + sh './platforms/nuttx/Debug/jlink_gdb_upload.sh build/px4_fmu-v5_default/px4_fmu-v5_default.elf' + sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600' + sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`' + } catch (Exception err) { + // always report passed for now + currentBuild.result = 'SUCCESS' + } + } // script + } + options { + timeout(time: 600, unit: 'SECONDS') + } + } + + stage('px4_fmu-v5_default (CUAV V5 Nano)') { + agent { + label 'cuav_v5_nano' + } + steps { + script { + try { + sh 'export' + sh 'find /dev/serial' + unstash 'px4_fmu-v5_default' + sh './platforms/nuttx/Debug/jlink_gdb_upload.sh build/px4_fmu-v5_default/px4_fmu-v5_default.elf' + sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600' + sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`' + } catch (Exception err) { + // always report passed for now + currentBuild.result = 'SUCCESS' + } + } // script + } + options { + timeout(time: 600, unit: 'SECONDS') + } + } + + stage('px4_fmu-v5_default (CUAV V5+)') { + agent { + label 'cuav_v5_plus' + } + steps { + script { + try { + sh 'export' + sh 'find /dev/serial' + unstash 'px4_fmu-v5_default' + sh './platforms/nuttx/Debug/jlink_gdb_upload.sh build/px4_fmu-v5_default/px4_fmu-v5_default.elf' + sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *usb-FTDI_*` --baudrate 57600' + sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *usb-FTDI_*`' + } catch (Exception err) { + // always report passed for now + currentBuild.result = 'SUCCESS' + } + } // script + } + options { + timeout(time: 600, unit: 'SECONDS') + } + } + stage('px4_fmu-v5_stackcheck') { agent { label 'px4_fmu-v5'