jenkinsfile - watch screen test 8 sanity check
This commit is contained in:
1 parent
052e78c23d
commit
4b83796e81
1 file changed
+2
-10
@@ -87,16 +87,8 @@ pipeline {
|
|||||||
sh """
|
sh """
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
ssh -o StrictHostKeyChecking=no root@${params.host_ip} << EOF
|
ssh -o StrictHostKeyChecking=no root@${params.host_ip} << EOF
|
||||||
set -euo pipefail
|
screen -list | grep -q "ble_test_${TEST_HASH}"
|
||||||
# Loop while the screen session exists
|
EOF
|
||||||
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
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user