Skip to content

Commit 7906c2e

Browse files
committed
update to create full path needed
1 parent a84e11f commit 7906c2e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

send_cobertura_to_bitbucket.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def create_code_coverage_report_in_bitbucket(filename, workspace, repo_slug, com
147147
timeout=30
148148
)
149149

150-
if resp.status_code == "200":
150+
if resp.status_code == 200:
151151
print("Reported Created")
152152
else:
153153
print("Reported Creation - FAILED")
@@ -158,6 +158,8 @@ def create_code_coverage_report_in_bitbucket(filename, workspace, repo_slug, com
158158
# Send annotations in batches of 100
159159
def send_code_coverage_annoations(annotations, workspace, repo_slug, commit_hash, email, token, verbose):
160160

161+
print("Sending coverage annotations")
162+
161163
# CONFIGURATION
162164
report_id = "coverage-report"
163165

@@ -178,9 +180,11 @@ def send_code_coverage_annoations(annotations, workspace, repo_slug, commit_hash
178180
headers= {"Accept": "application/json", "Content-Type": "application/json"}
179181
)
180182

181-
if verbose:
183+
if resp.status_code != 200 or verbose:
182184
print(f"Batch {i//100+1} response:", resp.status_code, resp.text)
183185

186+
print("Complete")
187+
184188

185189
def run(filename, minimum_passing_coverage, verbose):
186190

0 commit comments

Comments
 (0)