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

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

Attributes

  • approvalConfig (type: GoogleApi.CloudBuild.V1.Model.ApprovalConfig.t, default: nil) - Configuration for manual approval to start a build invocation of this BuildTrigger.
  • autodetect (type: boolean(), default: nil) - Autodetect build configuration. The following precedence is used (case insensitive): 1. cloudbuild.yaml 2. cloudbuild.yml 3. cloudbuild.json 4. Dockerfile Currently only available for GitHub App Triggers.
  • bitbucketServerTriggerConfig (type: GoogleApi.CloudBuild.V1.Model.BitbucketServerTriggerConfig.t, default: nil) - BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.
  • 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.
  • eventType (type: String.t, default: nil) - EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set.
  • 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) - A Common Expression Language string.
  • gitFileSource (type: GoogleApi.CloudBuild.V1.Model.GitFileSource.t, default: nil) - The file source describing the local or remote Build template.
  • 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.
  • gitlabEnterpriseEventsConfig (type: GoogleApi.CloudBuild.V1.Model.GitLabEventsConfig.t, default: nil) - GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.
  • 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.
  • includeBuildLogs (type: String.t, default: nil) - If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error.
  • 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.
  • repositoryEventConfig (type: GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig.t, default: nil) - The configuration of a trigger that creates a build whenever an event from Repo API is received.
  • 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.
  • serviceAccount (type: String.t, default: nil) - The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}
  • sourceToBuild (type: GoogleApi.CloudBuild.V1.Model.GitRepoSource.t, default: nil) - The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
  • 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudBuild.V1.Model.BuildTrigger{
  approvalConfig: GoogleApi.CloudBuild.V1.Model.ApprovalConfig.t() | nil,
  autodetect: boolean() | nil,
  bitbucketServerTriggerConfig:
    GoogleApi.CloudBuild.V1.Model.BitbucketServerTriggerConfig.t() | nil,
  build: GoogleApi.CloudBuild.V1.Model.Build.t() | nil,
  createTime: DateTime.t() | nil,
  description: String.t() | nil,
  disabled: boolean() | nil,
  eventType: String.t() | nil,
  filename: String.t() | nil,
  filter: String.t() | nil,
  gitFileSource: GoogleApi.CloudBuild.V1.Model.GitFileSource.t() | nil,
  github: GoogleApi.CloudBuild.V1.Model.GitHubEventsConfig.t() | nil,
  gitlabEnterpriseEventsConfig:
    GoogleApi.CloudBuild.V1.Model.GitLabEventsConfig.t() | nil,
  id: String.t() | nil,
  ignoredFiles: [String.t()] | nil,
  includeBuildLogs: String.t() | nil,
  includedFiles: [String.t()] | nil,
  name: String.t() | nil,
  pubsubConfig: GoogleApi.CloudBuild.V1.Model.PubsubConfig.t() | nil,
  repositoryEventConfig:
    GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig.t() | nil,
  resourceName: String.t() | nil,
  serviceAccount: String.t() | nil,
  sourceToBuild: GoogleApi.CloudBuild.V1.Model.GitRepoSource.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
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.