Skip to content

Commit 00cf8ae

Browse files
committed
removed if condition to check non2xx
1 parent db43569 commit 00cf8ae

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

browserstack_ci_template.yml

Lines changed: 4 additions & 5 deletions
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,11 +146,7 @@
143146
144147
# Initial API Request
145148
RESPONSE=$(make_api_request "FIRST")
146-
check_report_status "$RESPONSE"
147-
report_status_return=$?
148-
if [[ report_status_return -eq 1 ]]; then
149-
exit 0
150-
fi
149+
check_report_status "$RESPONSE" || true
151150
RETRY_COUNT=$(echo "$RESPONSE" | jq -r '.body.retryCount // 3')
152151
POLLING_DURATION=$(echo "$RESPONSE" | jq -r '.body.pollingInterval // 3')
153152

0 commit comments

Comments
 (0)