jenkinsfile - move print statements around 2
This commit is contained in:
1 parent
c0d60ba0ac
commit
7c0ef91bc3
1 file changed
+12
-4
@@ -139,14 +139,22 @@ pipeline {
|
|||||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||||
sh """
|
sh """
|
||||||
ssh -q -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
ssh -q -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||||
echo ==MC== Test complete, cleaning up Screen sessions
|
echo ==MC== Test complete, cleaning up Screen sessions
|
||||||
screen -wipe
|
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
|
||||||
fi
|
fi
|
||||||
rm /tmp/ble_test_${env.TEST_HASH}.log
|
if [ -f /tmp/ble_test_${env.TEST_HASH}.log ]; then
|
||||||
rm /root/.hushlogin
|
echo ==MC== Removing test log
|
||||||
|
rm /tmp/ble_test_${env.TEST_HASH}.log
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /root/.hushlogin ]; then
|
||||||
|
echo ==MC== Re-enabling MOTD
|
||||||
|
rm /root/.hushlogin
|
||||||
|
fi
|
||||||
|
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user