Skip to content

Commit 6a78264

Browse files
committed
some debug logs added & exit if check_report_status is returning nonZero
1 parent ad8e637 commit 6a78264

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

browserstack_ci_template.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@
120120
local error_message
121121
122122
status_code=$(echo "$response" | jq -r '.status_code')
123+
# todo-remove
124+
echo "Response Status Code in check_report_status: $status_code"
123125
body=$(echo "$response" | jq -r '.body')
126+
echo "Response body in check_report_status: body"
124127
125128
if [[ $status_code -ne 200 ]]; then
126129
echo "Error: API returned status code $status_code"
@@ -143,7 +146,7 @@
143146
144147
# Initial API Request
145148
RESPONSE=$(make_api_request "FIRST")
146-
check_report_status "$RESPONSE" || true
149+
check_report_status "$RESPONSE" || exit 0
147150
RETRY_COUNT=$(echo "$RESPONSE" | jq -r '.body.retryCount // 3')
148151
POLLING_DURATION=$(echo "$RESPONSE" | jq -r '.body.pollingInterval // 3')
149152

0 commit comments

Comments
 (0)