google_api_cloud_build v0.17.0 GoogleApi.CloudBuild.V1.Model.BuildTrigger 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 result in a build.

  • filename (type: String.t, default: nil) - Path, from the source root, to a file whose contents is used for the 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.

  • 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.
  • substitutions (type: map(), default: nil) - Substitutions data for Build resource.

  • 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.CloudBuild.V1.Model.BuildTrigger{
  build: GoogleApi.CloudBuild.V1.Model.Build.t(),
  createTime: DateTime.t(),
  description: String.t(),
  disabled: boolean(),
  filename: String.t(),
  github: GoogleApi.CloudBuild.V1.Model.GitHubEventsConfig.t(),
  id: String.t(),
  ignoredFiles: [String.t()],
  includedFiles: [String.t()],
  name: String.t(),
  substitutions: map(),
  tags: [String.t()],
  triggerTemplate: GoogleApi.CloudBuild.V1.Model.RepoSource.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.