jenkins: retry on failed git checkouts (#30345)

* jenkins: retry on failed git checkouts

* test

* Revert "test"

This reverts commit ea57ba0256.
old-commit-hash: 57c8304c25
testing-closet
Adeeb Shihadeh 2 years ago committed by GitHub
parent be9d291dad
commit 554528351b
  1. 4
      Jenkinsfile

4
Jenkinsfile vendored

@ -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])
}

Loading…
Cancel
Save