diff --git a/api/Jenkinsfile.ble_test b/api/Jenkinsfile.ble_test index bb2dbaa..6a6777f 100644 --- a/api/Jenkinsfile.ble_test +++ b/api/Jenkinsfile.ble_test @@ -82,10 +82,8 @@ pipeline { steps { 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... + ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF + echo Running background termination loop I hope... nohup sh -c ' sleep 10 while pgrep -f "tail.*ble_test_${env.TEST_HASH}" > /dev/null; do @@ -95,7 +93,6 @@ pipeline { sleep 5 done ' & - EOF """ } }