added logic to exit after 15 attempts (7 minutes) and fail jenkins job