Jenkins: better timeout when disconnected from devices (#31256)

* timeout better

* timeoutes
old-commit-hash: be33b0049982ade3cc639998c8142b373693c929
This commit is contained in:
Justin Newberry
2024-01-31 21:46:40 -05:00
committed by GitHub
parent b2bd45ca58
commit c999573836
Vendored
+1 -1
View File
@@ -12,7 +12,7 @@ def retryWithDelay(int maxRetries, int delay, Closure body) {
def device(String ip, String step_label, String cmd) {
withCredentials([file(credentialsId: 'id_rsa', variable: 'key_file')]) {
def ssh_cmd = """
ssh -tt -o StrictHostKeyChecking=no -i ${key_file} 'comma@${ip}' /usr/bin/bash <<'END'
ssh -tt -o ConnectTimeout=30 -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -o BatchMode=yes -o StrictHostKeyChecking=no -i ${key_file} 'comma@${ip}' /usr/bin/bash <<'END'
set -e