Method: projects.locations.triggers.run

Runs a BuildTrigger at a particular source revision.

HTTP request

POST https://cloudbuild.googleapis.com/v1/{name=projects/*/locations/*/triggers/*}:run

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

The name of the Trigger to run. Format: projects/{project}/locations/{location}/triggers/{trigger}

Request body

The request body contains data with the following structure:

JSON representation
{
  "projectId": string,
  "triggerId": string,
  "source": {
    object (RepoSource)
  }
}
Fields
projectId

string

Required. ID of the project.

triggerId

string

Required. ID of the trigger.

source

object (RepoSource)

Source to build against this trigger.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.