ble - fixing test_driver after cleanup
This commit is contained in:
1 parent
1dff4d71b6
commit
72c878e8e8
2 files changed
+11
-10
No files matched your search
@@ -38,8 +38,8 @@ pipeline {
|
||||
|
||||
sh """
|
||||
cd /tmp
|
||||
echo Test Hash - ${env.TEST_HASH}
|
||||
echo Disabling MOTD...
|
||||
echo ==MC== Test Hash - ${env.TEST_HASH}
|
||||
echo ==MC== Disabling MOTD...
|
||||
touch .hushlogin
|
||||
scp .hushlogin root@${params.host_ip}:/root/.hushlogin
|
||||
|
||||
@@ -57,9 +57,9 @@ pipeline {
|
||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||
sh """
|
||||
ssh -q -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||
echo Checking for screen application...
|
||||
echo ==MC== Checking for screen application...
|
||||
if ! command -v screen > /dev/null; then
|
||||
echo "screen not found - installing"
|
||||
echo ==MC== "screen not found - installing"
|
||||
apt-get update && apt-get install -y screen
|
||||
fi
|
||||
"""
|
||||
@@ -75,9 +75,9 @@ pipeline {
|
||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||
sh """
|
||||
ssh -q -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||
echo Initiating BLE test in Screen session ble_test_${env.TEST_HASH}
|
||||
echo ==MC== Initiating BLE test in Screen session ble_test_${env.TEST_HASH}
|
||||
sleep 5
|
||||
echo Pulling code changes from Gitea...
|
||||
echo ==MC== Pulling code changes from Gitea...
|
||||
cd /opt/ble-test/ble_api
|
||||
git pull
|
||||
cd /opt/ble-test/ble_api/api
|
||||
@@ -93,7 +93,7 @@ pipeline {
|
||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||
sh """
|
||||
ssh -q -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||
echo === Initiating Tail Watchdog ===
|
||||
echo ==MC== Initiating Tail Watchdog
|
||||
screen -dmS ble_test_watchdog_${env.TEST_HASH} sh -c '
|
||||
while ! pgrep -f "tail.*ble_test_${env.TEST_HASH}" > /dev/null; do
|
||||
sleep 1
|
||||
@@ -108,6 +108,7 @@ pipeline {
|
||||
done
|
||||
exit
|
||||
'
|
||||
echo ==MC== Tail watchdog running in screen session ble_test_watchdog_${env.TEST_HASH}
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user