def generate_options_for_bucket_to_store_sourcecode(control_value=None, **kwargs):
    buckets = []
    if control_value:
        environment = Environment.objects.get(id=control_value)
        project_id=environment.gcp_project
        rh = environment.resource_handler.cast()
        project=rh.gcp_projects.get(id=project_id).name
        storage_client = create_build_client(rh,project_id,'storage')
        list_bucket=storage_client.buckets().list(project=project).execute()
        buckets = [bucket.get('name') for bucket in list_bucket.get('items')]

    return buckets