diff --git a/freight/checks/cloudbuilder.py b/freight/checks/cloudbuilder.py index 8f8ecd33..b568efb0 100644 --- a/freight/checks/cloudbuilder.py +++ b/freight/checks/cloudbuilder.py @@ -83,7 +83,7 @@ def check(self, app, sha, config): } if build_status == "FAILURE": - build_logtext = u"https://storage.googleapis.com/{}/log-{}.txt".format( + build_logtext = u"https://storage.googleapis.com/{}log-{}.txt".format( build_logs[5:], build_id ) log = http.get(build_logtext, headers=headers) diff --git a/tests/checks/test_cloudbuilder.py b/tests/checks/test_cloudbuilder.py index 75048f92..d76b3c3d 100644 --- a/tests/checks/test_cloudbuilder.py +++ b/tests/checks/test_cloudbuilder.py @@ -101,7 +101,7 @@ def test_build_fail(self): responses.add( responses.GET, u"https://storage.googleapis.com/{build_logs}/log-{build_id}.txt".format( - build_logs="mycoolproject.cloudbuild-logs.googleusercontent.com", + build_logs="mycoolbucket/mycoolproject/", build_id="failed_build_id", ), body=dedent(failed_log_text),