jenkinsfile - watch screen test 7k trying print again with some crazy stuff
This commit is contained in:
1 parent
04db8f5b4f
commit
6ea8905395
1 file changed
+3
-3
@@ -90,10 +90,10 @@ pipeline {
|
||||
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" | \
|
||||
# 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"
|
||||
printf '%s\n' "${line//$'\\r'/}"
|
||||
done
|
||||
done
|
||||
EOF
|
||||
|
||||
Reference in new issue
Block a user