jenkinsfile - watch screen test 7k trying print again with some crazy stuff

This commit is contained in:
matt committed 2026-10-18 02:24:24 -07:00
1 parent 04db8f5b4f
commit 6ea8905395
1 file changed
+4 -4
+4 -4
View File
@@ -90,11 +90,11 @@ pipeline {
set -euo pipefail set -euo pipefail
# Loop while the screen session exists # Loop while the screen session exists
while screen -list | grep -q "ble_test_${TEST_HASH}"; do while screen -list | grep -q "ble_test_${TEST_HASH}"; do
# Tail the file and flush each line immediately # Tail the file and strip Windows CR before printing
tail -n +1 -f "/tmp/ble_test_${env.TEST_HASH}.log" | \ tail -n +1 -f "/tmp/ble_test_${env.TEST_HASH}.log" |
while IFS= read -r line; do while IFS= read -r line; do
printf '%s\\n' "\$line" printf '%s\n' "${line//$'\\r'/}"
done done
done done
EOF EOF
""" """