CloudBuildCreateBuildOperator

Google

Starts a build with the specified configuration.

View Source

Last Updated: May. 7, 2021

Access Instructions

Install the Google provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

bodydict or stringThe build config with instructions to perform with CloudBuild. Can be a dictionary or path to a file type like YAML or JSON. See: https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds
project_idstrID of the Google Cloud project if None then default project_id is used.
gcp_conn_idstrThe connection ID to use to connect to Google Cloud.
api_versionstrAPI version used (for example v1 or v1beta1).
impersonation_chainUnion[str, Sequence[str]]Optional service account to impersonate using short-term credentials, or chained list of accounts required to get the access_token of the last account in the list, which will be impersonated in the request. If set as a string, the account must grant the originating account the Service Account Token Creator IAM role. If set as a sequence, the identities from the list must grant Service Account Token Creator IAM role to the directly preceding identity, with first account from the list granting this role to the originating account (templated).

Documentation

Starts a build with the specified configuration.

See also

For more information on how to use this operator, take a look at the guide: Trigger a build

Was this page helpful?