Skip to content

Commit

Permalink
Bug 1622800 - part 14: Do not fail job on missing bitrise logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLorenzo committed Apr 30, 2020
1 parent d7de0fa commit 533b564
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions taskcluster/scripts/bitrise-schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ async def download_log(client, build_slug):

response = await do_http_request_json(client, url)
download_url = response["expiring_raw_log_url"]
if not download_url:
raise TaskException("Bitrise has no log to offer for job {}. Please check https://app.bitrise.io/app/{}".format(build_slug, BITRISE_APP_SLUG_ID))
await download_file(download_url, "bitrise.log")
if download_url:
await download_file(download_url, "bitrise.log")
else:
log.error("Bitrise has no log to offer for job {0}. Please check https://app.bitrise.io/build/{0}".format(build_slug))



CHUNK_SIZE = 128
Expand Down

0 comments on commit 533b564

Please sign in to comment.