Commit 6bd36f6e authored by José Henrique's avatar José Henrique
Browse files

Improve post_build_utils

parent 58576bf8
......@@ -139,7 +139,7 @@ def get_artifact_info(device, build):
"build": build
}
for i in range(1, 6):
print("Connecting to " + api_url + " (" + str(i) + "/5)")
print("Connecting to " + api_url + " (attempt " + str(i) + " of 5)")
try:
response = requests.request("POST", api_url, data=post_data)
status_code = response.status_code
......@@ -166,7 +166,7 @@ def download_artifact(device, build, destination_path):
" --output '" + destination_path + "'"
for i in range(1, 6):
print("Trying to download artifact (" + str(i) + "/5)")
print("Trying to download artifact (attempt " + str(i) + " of 5)")
if run_command(cmd) == 0:
return True
print("Download failed, trying again...")
......
Markdown is supported
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