adding a "retry loop" inside sendHTTPCall, so that if the connection failed... it will retry a certain amount of times before marking the build as failed.