def get_server(envs):
    """
    Get the server address
    :param envs:
    :return:
    """
    apiurl = envs.get('CI_API_V4_URL')
    proto, address = apiurl.split('://', 1)
    host, _ = address.split('/', 1)
    server = '{}://{}'.format(proto, host)
    return server
