mirror of https://github.com/1okko/openpilot.git
jenkins: retry on failed git checkouts (#30345)
* jenkins: retry on failed git checkouts * test * Revert "test" This reverts commit ea57ba025630eb3105a9ccdce3bdc17f72678c72.
This commit is contained in:
parent
01610128bb
commit
57c8304c25
|
@ -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…
Reference in New Issue