mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-14 15:39:09 +00:00
ci: Retry lint image building once after failure
The same was done for the other CI tasks in commit fa6aa9f42fa. This may guard against intermittent network issues to download the base image or packages ...
This commit is contained in:
parent
fac4f6de28
commit
faf05d637d
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -601,7 +601,7 @@ jobs:
|
||||
- name: CI script
|
||||
shell: python
|
||||
run: |
|
||||
import os, shlex, subprocess, sys
|
||||
import os, shlex, subprocess, sys, time
|
||||
|
||||
def run(cmd, **kwargs):
|
||||
print("+ " + shlex.join(cmd), flush=True)
|
||||
@ -621,7 +621,10 @@ jobs:
|
||||
"."
|
||||
]
|
||||
|
||||
run(build_cmd)
|
||||
if run(build_cmd, check=False).returncode != 0:
|
||||
print("Retry building image tag after failure")
|
||||
time.sleep(3)
|
||||
run(build_cmd)
|
||||
|
||||
CIRRUS_PR_FLAG = []
|
||||
if '${{ github.event_name }}' == "pull_request":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user