diff --git a/api/Jenkinsfile.ble_test b/api/Jenkinsfile.ble_test index 25e67d6..0c94f3d 100644 --- a/api/Jenkinsfile.ble_test +++ b/api/Jenkinsfile.ble_test @@ -68,12 +68,12 @@ pipeline { sshagent([env.SSH_CREDENTIALS_ID]) { sh """ ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF + usbreset ${params.BT_USB_ID} + sleep 5 + cd /opt/ble-test/ble_api + git pull # Start test in detached screen screen -dmS ${env.SCREEN_SESSION} bash -c ' - usbreset ${params.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} '