add loop breaker to test
This commit is contained in:
1 parent
4c205bdfa0
commit
0b4bb35962
3 files changed
+139
-1
No files matched your search
@@ -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}
|
||||
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user