tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger

Example Airflow DAG that displays interactions with Google Cloud Build.

Module Contents

Functions

get_project_number()

Helper function to retrieve the number of the project based on PROJECT_ID

Attributes

ENV_ID

PROJECT_ID

DAG_ID

GCP_SOURCE_REPOSITORY_NAME

TRIGGER_NAME

PROJECT_NUMBER

create_build_trigger_body

update_build_trigger_body

create_build_from_repo_body

create_build_trigger

test_run

tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.ENV_ID[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.PROJECT_ID[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.DAG_ID = 'gcp_cloud_build_trigger'[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.GCP_SOURCE_REPOSITORY_NAME = 'test-cloud-build-repository'[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.TRIGGER_NAME[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.PROJECT_NUMBER = "{{ task_instance.xcom_pull('get_project_number') }}"[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.create_build_trigger_body[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.update_build_trigger_body[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.create_build_from_repo_body: dict[str, Any][source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.get_project_number()[source]

Helper function to retrieve the number of the project based on PROJECT_ID

tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.create_build_trigger[source]
tests.system.providers.google.cloud.cloud_build.example_cloud_build_trigger.test_run[source]

Was this entry helpful?