From 5bef63f69aec1d018d423cfb1c2d46048b6dd5ca Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 18 Oct 2026 02:11:04 -0700 Subject: [PATCH] jenkinsfile - watch screen test 7g new ssh method --- api/Jenkinsfile.ble_test | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/api/Jenkinsfile.ble_test b/api/Jenkinsfile.ble_test index b7c7d1f..a4061b2 100644 --- a/api/Jenkinsfile.ble_test +++ b/api/Jenkinsfile.ble_test @@ -80,25 +80,26 @@ pipeline { //while screen -list | grep -q ble_test_${env.TEST_HASH}; do // tail -f /tmp/ble_test_${env.TEST_HASH}.log - //done stage('View Test Logs') { - steps { - sshagent([env.SSH_CREDENTIALS_ID]) { - sh """ - #!/usr/bin/env bash - ssh -o StrictHostKeyChecking=no root@${params.host_ip} << EOF - set -euo pipefail - # Loop while the screen session exists - while screen -list | grep -q "ble_test_${TEST_HASH}"; do - # Tail the file and flush each line immediately - tail -n +1 -f "/tmp/ble_test_${env.TEST_HASH}.log" | while IFS= read -r line; do - echo "$line" - done - done - EOF - """ + //done + stage('View Test Logs'){ + steps { + sshagent([env.SSH_CREDENTIALS_ID]) { + sh """ + #!/usr/bin/env bash + ssh -o StrictHostKeyChecking=no root@${params.host_ip} << EOF + set -euo pipefail + # Loop while the screen session exists + while screen -list | grep -q "ble_test_${TEST_HASH}"; do + # Tail the file and flush each line immediately + tail -n +1 -f "/tmp/ble_test_${env.TEST_HASH}.log" | while IFS= read -r line; do + echo "$line" + done + done + EOF + """ + } + } } - } -} }