Skip to content

Commit f050810

Browse files
committed
update to create full path needed
1 parent 2a56c98 commit f050810

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

send_cobertura_to_bitbucket.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def get_summary_resuts(xml_path, minimum_passing_coverage, verbose):
119119

120120
def create_code_coverage_report_in_bitbucket(filename, workspace, repo_slug, commit_hash, email, token, minimum_passing_coverage, verbose):
121121

122+
print("Creating coverage report for commit {}".format(commit_hash))
123+
122124
# CONFIGURATION
123125
report_id = "coverage-report"
124126

@@ -145,8 +147,12 @@ def create_code_coverage_report_in_bitbucket(filename, workspace, repo_slug, com
145147
timeout=30
146148
)
147149

148-
print("Report creation status:", resp.status_code)
149-
print("Response:", resp.text)
150+
if resp.status_code == "200":
151+
print("Reported Created")
152+
else:
153+
print("Reported Creation - FAILED")
154+
print("Report creation status:", resp.status_code)
155+
print("Response:", resp.text)
150156

151157

152158
# Send annotations in batches of 100

0 commit comments

Comments
 (0)