Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
fix(cloudbuild): path for log files was constructed incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
evralston committed Apr 2, 2019
1 parent d1e8305 commit c79930a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion freight/checks/cloudbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/checks/test_cloudbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c79930a

Please sign in to comment.