jenkinsfile - watch screen test 8 sanity check

This commit is contained in:
matt committed 2026-10-18 02:37:01 -07:00
1 parent 052e78c23d
commit 4b83796e81
1 file changed
+2 -10
+2 -10
View File
@@ -87,16 +87,8 @@ pipeline {
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 strip Windows CR before printing
tail -n +1 -f "/tmp/ble_test_${env.TEST_HASH}.log" |
while IFS= read -r line; do
printf '%s\\n' "\$line"
done
done
EOF
screen -list | grep -q "ble_test_${TEST_HASH}"
EOF
"""
}
}