GoogleApi.CloudBuild.V1.Model.BuildTrigger (google_api_cloud_build v0.35.0) View Source

Configuration for an automated build in response to source repository changes.

Attributes

  • build (type: GoogleApi.CloudBuild.V1.Model.Build.t, default: nil) - Contents of the build template.
  • createTime (type: DateTime.t, default: nil) - Output only. Time when the trigger was created.
  • description (type: String.t, default: nil) - Human-readable description of this trigger.
  • disabled (type: boolean(), default: nil) - If true, the trigger will never automatically execute a build.
  • filename (type: String.t, default: nil) - Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
  • filter (type: String.t, default: nil) - Optional. A Common Expression Language string.
  • github (type: GoogleApi.CloudBuild.V1.Model.GitHubEventsConfig.t, default: nil) - GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with trigger_template.
  • id (type: String.t, default: nil) - Output only. Unique identifier of the trigger.
  • ignoredFiles (type: list(String.t), default: nil) - ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**". If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.
  • includedFiles (type: list(String.t), default: nil) - If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
  • name (type: String.t, default: nil) - User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
  • pubsubConfig (type: GoogleApi.CloudBuild.V1.Model.PubsubConfig.t, default: nil) - PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
  • resourceName (type: String.t, default: nil) - The Trigger name with format: projects/{project}/locations/{location}/triggers/{trigger}, where {trigger} is a unique identifier generated by the service.
  • substitutions (type: map(), default: nil) - Substitutions for Build resource. The keys must match the following regular expression: ^_[A-Z0-9_]+$.
  • tags (type: list(String.t), default: nil) - Tags for annotation of a BuildTrigger
  • triggerTemplate (type: GoogleApi.CloudBuild.V1.Model.RepoSource.t, default: nil) - Template describing the types of source changes to trigger a build. Branch and tag names in trigger templates are interpreted as regular expressions. Any branch or tag change that matches that regular expression will trigger a build. Mutually exclusive with github.
  • webhookConfig (type: GoogleApi.CloudBuild.V1.Model.WebhookConfig.t, default: nil) - WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CloudBuild.V1.Model.BuildTrigger{
  build: GoogleApi.CloudBuild.V1.Model.Build.t() | nil,
  createTime: DateTime.t() | nil,
  description: String.t() | nil,
  disabled: boolean() | nil,
  filename: String.t() | nil,
  filter: String.t() | nil,
  github: GoogleApi.CloudBuild.V1.Model.GitHubEventsConfig.t() | nil,
  id: String.t() | nil,
  ignoredFiles: [String.t()] | nil,
  includedFiles: [String.t()] | nil,
  name: String.t() | nil,
  pubsubConfig: GoogleApi.CloudBuild.V1.Model.PubsubConfig.t() | nil,
  resourceName: String.t() | nil,
  substitutions: map() | nil,
  tags: [String.t()] | nil,
  triggerTemplate: GoogleApi.CloudBuild.V1.Model.RepoSource.t() | nil,
  webhookConfig: GoogleApi.CloudBuild.V1.Model.WebhookConfig.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.