jenkinsfile - test post screen kill functions
This commit is contained in:
1 parent
d38984ceee
commit
642e349afc
1 file changed
+4
-1
@@ -83,7 +83,8 @@ pipeline {
|
|||||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||||
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 Running background termination loop I hope...
|
echo Initiating Tail Watchdog
|
||||||
|
screen -dms ble_test_red_herring_${env.TEST_HASH}
|
||||||
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
|
||||||
@@ -128,6 +129,8 @@ pipeline {
|
|||||||
if screen -list | grep -q ${env.TEST_HASH}; then
|
if screen -list | grep -q ${env.TEST_HASH}; then
|
||||||
screen -S ble_test_watchdog_${env.TEST_HASH} -X quit
|
screen -S ble_test_watchdog_${env.TEST_HASH} -X quit
|
||||||
screen -S ble_test_${env.TEST_HASH} -X quit
|
screen -S ble_test_${env.TEST_HASH} -X quit
|
||||||
|
screen -S ble_test_red_herring_${env.TEST_HASH} -X quit
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm /tmp/ble_test_${env.TEST_HASH}.log
|
rm /tmp/ble_test_${env.TEST_HASH}.log
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in new issue
Block a user