jenkinsfile - test post screen kill functions 2
This commit is contained in:
1 parent
642e349afc
commit
7bd4e0e859
1 file changed
+3
-1
@@ -84,7 +84,9 @@ pipeline {
|
|||||||
sh """
|
sh """
|
||||||
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 Initiating Tail Watchdog
|
echo Initiating Tail Watchdog
|
||||||
screen -dms ble_test_red_herring_${env.TEST_HASH}
|
screen -dms ble_test_red_herring_${env.TEST_HASH} sh -c '
|
||||||
|
watch -n 1 uptime
|
||||||
|
'
|
||||||
screen -dmS ble_test_watchdog_${env.TEST_HASH} sh -c '
|
screen -dmS ble_test_watchdog_${env.TEST_HASH} sh -c '
|
||||||
while ! pgrep -f "tail.*ble_test_${env.TEST_HASH}" > /dev/null; do
|
while ! pgrep -f "tail.*ble_test_${env.TEST_HASH}" > /dev/null; do
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in new issue
Block a user