jenkinsfile - test post screen kill functions

This commit is contained in:
matt committed 2026-10-18 04:06:11 -07:00
1 parent d38984ceee
commit 642e349afc
1 file changed
+4 -1
+4 -1
View File
@@ -83,7 +83,8 @@ pipeline {
sshagent([env.SSH_CREDENTIALS_ID]) {
sh """
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 '
while ! pgrep -f "tail.*ble_test_${env.TEST_HASH}" > /dev/null; do
sleep 1
@@ -128,6 +129,8 @@ pipeline {
if screen -list | grep -q ${env.TEST_HASH}; then
screen -S ble_test_watchdog_${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
rm /tmp/ble_test_${env.TEST_HASH}.log
"""