jenkinsfile - watch screen test sleep before starting kill loop
This commit is contained in:
1 parent
01cecb3289
commit
3c8ebbcce5
1 file changed
+1
@@ -85,6 +85,7 @@ pipeline {
|
|||||||
ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||||
echo Running background termination loop I hope...
|
echo Running background termination loop I hope...
|
||||||
(
|
(
|
||||||
|
sleep 10
|
||||||
while pgrep -f "tail.*ble_test_${env.TEST_HASH}" > /dev/null; do
|
while pgrep -f "tail.*ble_test_${env.TEST_HASH}" > /dev/null; do
|
||||||
if ! screen -list | grep -q ble_test_${env.TEST_HASH}; then
|
if ! screen -list | grep -q ble_test_${env.TEST_HASH}; then
|
||||||
pkill -9 -f "tail.*ble_test_${env.TEST_HASH}"
|
pkill -9 -f "tail.*ble_test_${env.TEST_HASH}"
|
||||||
|
|||||||
Reference in new issue
Block a user