diff --git a/Jenkinsfile b/Jenkinsfile index 35c16e29c94d82..314170341ecbf4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -64,7 +64,9 @@ def deviceStage(String stageName, String deviceType, List env, def steps) { docker.image('ghcr.io/commaai/alpine-ssh').inside('--user=root') { lock(resource: "", label: deviceType, inversePrecedence: true, variable: 'device_ip', quantity: 1) { timeout(time: 20, unit: 'MINUTES') { - device(device_ip, "git checkout", extra + "\n" + readFile("selfdrive/test/setup_device_ci.sh")) + retry (3) { + device(device_ip, "git checkout", extra + "\n" + readFile("selfdrive/test/setup_device_ci.sh")) + } steps.each { item -> device(device_ip, item[0], item[1]) }