ble - fixing some coding typos

This commit is contained in:
matt committed 2026-10-20 23:48:09 -07:00
1 parent d3a866329d
commit 90cb977b35
2 files changed
+22 -7

No files matched your search

+12 -2
View File
@@ -24,7 +24,7 @@ pipeline {
stages {
// ---------------------------------------------------------------------
// 1. Build a unique screen session name
// 1. Build a unique screen session name, disable MOTD
// ---------------------------------------------------------------------
stage('Prepare Test Hash') {
steps {
@@ -36,7 +36,15 @@ pipeline {
env.TEST_HASH =
"${String.format('%06d', epochSec % 1_000_000)}"
sh "echo Test Hash - ${env.TEST_HASH}"
sh """
cd /tmp
echo Test Hash - ${env.TEST_HASH}
echo Disabling MOTD...
touch .hushlogin
scp .hushlogin root@${params.host_ip}:/root/.hushlogin
"""
}
}
}
@@ -49,6 +57,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 Checking for screen application...
if ! command -v screen > /dev/null; then
echo "screen not found - installing"
apt-get update && apt-get install -y screen
@@ -66,6 +75,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 Starting BLE test
sleep 5
cd /opt/ble-test/ble_api
git pull