def has_deployments_successful(deployments):
    """Check if whole deployment was successful"""
    for deployment in deployments:
        if not deployment.ended_successfully:
            return False
    return True