From b24aa071b6ff1b8c7607e96a1b7c96c6f41bd200 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Tue, 8 Feb 2022 13:23:14 -0500 Subject: [PATCH] Jenkins: hardware always dump pyserial debug (silently) --- .ci/Jenkinsfile-hardware | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/.ci/Jenkinsfile-hardware b/.ci/Jenkinsfile-hardware index b7c944cab6..2db92fa16a 100644 --- a/.ci/Jenkinsfile-hardware +++ b/.ci/Jenkinsfile-hardware @@ -73,10 +73,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/cubepilot_cubeorange_test/cubepilot_cubeorange_test.elf || true' } } @@ -145,10 +143,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/cuav_x7pro_test/cuav_x7pro_test.elf || true' } } @@ -217,10 +213,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/px4_fmu-v3_test/px4_fmu-v3_test.elf || true' } } @@ -288,10 +282,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/px4_fmu-v4_test/px4_fmu-v4_test.elf || true' } } @@ -360,10 +352,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/px4_fmu-v4pro_test/px4_fmu-v4pro_test.elf || true' } } @@ -452,10 +442,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/px4_fmu-v5_debug/px4_fmu-v5_debug.elf || true' } } @@ -536,10 +524,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/px4_fmu-v5_stackcheck/px4_fmu-v5_stackcheck.elf || true' } } @@ -608,10 +594,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/px4_fmu-v5_test/px4_fmu-v5_test.elf || true' } } @@ -680,10 +664,8 @@ pipeline { } } post { - failure { - sh 'cat /tmp/pyserial_spy_file.txt || true' - } always { + sh 'cat /tmp/pyserial_spy_file.txt || true' sh './platforms/nuttx/Debug/jlink_gdb_backtrace_simple.sh build/nxp_fmuk66-v3_test/nxp_fmuk66-v3_test.elf || true' } }