Commit 217d20fc authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: try to increase max retry

parent 7c25e130
Pipeline #1978 failed with stages
in 42 minutes and 22 seconds
...@@ -141,7 +141,7 @@ class Handler: ...@@ -141,7 +141,7 @@ class Handler:
full_url = self.url + buildid_api + buildid_params full_url = self.url + buildid_api + buildid_params
if trace: if trace:
print("full_url: "+full_url) print("full_url: "+full_url)
nb_try = 6 nb_try = 30
build_id_regex = re.compile( "<buildid>([0-9]+)</buildid>" ) build_id_regex = re.compile( "<buildid>([0-9]+)</buildid>" )
while nb_try: while nb_try:
response = urllib.request.urlopen(full_url).read().decode() response = urllib.request.urlopen(full_url).read().decode()
...@@ -151,7 +151,7 @@ class Handler: ...@@ -151,7 +151,7 @@ class Handler:
nb_try -= 1 nb_try -= 1
if buildid or (nb_try == 0): if buildid or (nb_try == 0):
break break
print("No build id, retry ...") print("No build id, retry "+str(30-nb_try)+"/30 ...")
time.sleep(60) time.sleep(60)
if buildid: if buildid:
self.buildid = buildid.group(1) self.buildid = buildid.group(1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment