32 lines
808 B
Plaintext
32 lines
808 B
Plaintext
|
|
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}
|
|
|
|
"""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|