mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-04 02:49:10 +02:00
ci: Retry lint image building once after failure
The same was done for the other CI tasks in commit fa6aa9f42f. This may
guard against intermittent network issues to download the base image or
packages ...
This commit is contained in:
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":
|
||||
|
||||
Reference in New Issue
Block a user