Skip to content

Commit

Permalink
jenkins: retry on failed git checkouts (commaai#30345)
Browse files Browse the repository at this point in the history
* jenkins: retry on failed git checkouts

* test

* Revert "test"

This reverts commit ea57ba0.
  • Loading branch information
adeebshihadeh authored Oct 30, 2023
1 parent 0161012 commit 57c8304
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand Down

0 comments on commit 57c8304

Please sign in to comment.