jenkinsfile - watch screen test 8 sanity check
This commit is contained in:
1 parent
052e78c23d
commit
4b83796e81
1 file changed
+1
-9
@@ -87,15 +87,7 @@ 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
|
||||
screen -list | grep -q "ble_test_${TEST_HASH}"
|
||||
EOF
|
||||
"""
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user