jenkinsfile - kill loop post wipe
This commit is contained in:
1 parent
ac6bfd739a
commit
15b8495467
1 file changed
+3
@@ -116,12 +116,15 @@ pipeline {
|
|||||||
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
// Post-build cleanup - kill the remote screen session
|
// Post-build cleanup - kill the remote screen session
|
||||||
|
// screen -list | grep ble_test_watchdog_${env.TEST_HASH} | xargs | cut -d. -f1
|
||||||
|
// screen -list | grep ble_test_${env.TEST_HASH} | xargs | cut -d. -f1
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
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
|
||||||
|
screen -wipe
|
||||||
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
|
||||||
|
|||||||
Reference in new issue
Block a user