Merge pull request #52 from Mic92/fixes

git: fix retry message
This commit is contained in:
Jörg Thalheim 2023-12-04 10:23:30 +01:00 committed by GitHub
commit 29f998bbfe
Failed to generate hash of commit

View file

@ -345,7 +345,8 @@ class GitWithRetry(steps.Git):
retry_counter += 1 retry_counter += 1
if retry_counter == 3: if retry_counter == 3:
raise e raise e
self.step_status.setText(f"Retrying git clone (error: {e})") log: Log = yield self.addLog("log")
yield log.addStderr(f"Retrying git clone (error: {e})\n")
yield asyncSleep(2 << retry_counter) # 2, 4, 8 yield asyncSleep(2 << retry_counter) # 2, 4, 8