jenkinsfile remove timeout and retries
This commit is contained in:
1 parent
77b78020c4
commit
e59ea82a11
1 file changed
+12
-16
+12
-16
@@ -63,22 +63,18 @@ pipeline {
|
|||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
stage('Run BLE Test') {
|
stage('Run BLE Test') {
|
||||||
steps {
|
steps {
|
||||||
retry(3) { // 3× retry on transient SSH hiccups
|
sshagent([env.SSH_CREDENTIALS_ID]) {
|
||||||
timeout(time: 5, unit: 'MINUTES') { // 5-minute hard timeout
|
sh """
|
||||||
sshagent([env.SSH_CREDENTIALS_ID]) {
|
ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
||||||
sh """
|
usbreset ${params.BT_USB_ID}
|
||||||
ssh -o StrictHostKeyChecking=no root@${params.host_ip} -o ServerAliveInterval=60 -o ServerAliveCountMax=120 << EOF
|
sleep 5
|
||||||
usbreset ${params.BT_USB_ID}
|
cd /opt/ble-test/ble_api
|
||||||
sleep 5
|
git pull
|
||||||
cd /opt/ble-test/ble_api
|
cd /opt/ble-test/ble_api/api
|
||||||
git pull
|
sleep 2
|
||||||
cd /opt/ble-test/ble_api/api
|
screen -dmS ble_test_${env.TEST_HASH} bash -c "cd /opt/ble-test/ble_api/api && python3 -u ./ble.py ${params.test_count} | tee /tmp/ble_test_${env.TEST_HASH}.log"
|
||||||
sleep 2
|
tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
||||||
screen -dmS ble_test_${env.TEST_HASH} bash -c "cd /opt/ble-test/ble_api/api && python3 -u ./ble.py ${params.test_count} | tee /tmp/ble_test_${env.TEST_HASH}.log"
|
"""
|
||||||
tail -f /tmp/ble_test_${env.TEST_HASH}.log
|
|
||||||
"""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user