add loop breaker to test

This commit is contained in:
matt committed 2026-10-17 23:36:47 -07:00
1 parent 4c205bdfa0
commit 0b4bb35962
3 files changed
+139 -1

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
pipeline {
agent any
environment {
DEBIAN_IP = 'debian_machine_ip'
SSH_CREDENTIALS_ID = 'jenkins_root_ssh'
}
stages {
stage('Run BLE Test') {
steps {
script {
sshagent([env.SSH_CREDENTIALS_ID]) {
sh """
ssh -o StrictHostKeyChecking=no root@${params.host_ip} << EOF
usbreset ${BT_USB_ID}
sleep 5
cd /opt/ble-test/ble_api
git pull
cd /opt/ble-test/ble_api/api
python3 -u ./ble.py ${params.test_count}
"""
}
}
}
}
}
}