From 95f3252318fb603e08d31cb75e87ab1bda57f3ae Mon Sep 17 00:00:00 2001 From: matt Date: Sun, 18 Oct 2026 00:12:52 -0700 Subject: [PATCH] jenkinsfile - watch screen test 1 --- api/Jenkinsfile.ble_test | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/Jenkinsfile.ble_test b/api/Jenkinsfile.ble_test index e165e0c..25e67d6 100644 --- a/api/Jenkinsfile.ble_test +++ b/api/Jenkinsfile.ble_test @@ -7,7 +7,6 @@ pipeline { environment { DEBIAN_IP = 'debian_machine_ip' SSH_CREDENTIALS_ID = 'jenkins_root_ssh' - REMOTE_SCRIPT = '/opt/ble-test/ble_api/api/ble.py' } // ------------------------------------------------------------------ @@ -65,7 +64,7 @@ pipeline { stage('Run BLE Test') { steps { retry(3) { // 3× retry on transient SSH hiccups - timeout(time: 8, unit: 'HOURS') { // 8‑hour hard timeout + timeout(time: 5, unit: 'MINUTES') { // 5-minute hard timeout sshagent([env.SSH_CREDENTIALS_ID]) { sh """ ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF @@ -76,10 +75,10 @@ pipeline { cd /opt/ble-test/ble_api git pull cd /opt/ble-test/ble_api/api - python3 -u ${REMOTE_SCRIPT} ${params.test_count} + python3 -u ./ble.py ${params.test_count} ' - # Give screen a moment to spin up - sleep 2 + echo "=== Live test output ===" + tail -f ~/screen/S.${env.SCREEN_SESSION} """ } }