https://pulumi.com logo
#general
Title
# general
m

many-gigabyte-65808

03/03/2024, 3:12 PM
Hello, When I try to create a Trigger on a gcp cloudbuild repository which is gen 2, the trigger gets created as gen 1 and it is not able to find the repository. How do I specify to Trigger that the repository is generation 2? I used gcp.cloudbuild.Trigger. Adding my snippet trigger in the thread. Any help is appreciated. Thanks
Copy code
cloudbuild_trigger = gcp.cloudbuild.Trigger("test-build-trigger",
    included_files=["*"],
    filename="cloudbuild.yaml",
    description="GitLab repo Docker build trigger",
    project=project,
    trigger_template=gcp.cloudbuild.TriggerTriggerTemplateArgs(
                                     branch_name="main",
                                     repo_name=repository.id,
                                 ),
    location=location,
)
I have the following repo setup with connection
image.png
Trigger gets created fine, just the repository is not correct