jenkinsfile - watch screen test adding debugging things
This commit is contained in:
1 parent
6e32e99d83
commit
01cecb3289
1 file changed
+2
@@ -83,11 +83,13 @@ 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...
|
||||||
(
|
(
|
||||||
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}"
|
||||||
fi
|
fi
|
||||||
|
echo Hello from in the loop
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
) &
|
) &
|
||||||
|
|||||||
Reference in new issue
Block a user