Show / Hide Table of Contents

Class BuildTrigger

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

Inheritance
System.Object
BuildTrigger
Implements
Google.Apis.Requests.IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudBuild.v1.Data
Assembly: Google.Apis.CloudBuild.v1.dll
Syntax
public class BuildTrigger : IDirectResponseSchema

Properties

Build

Contents of the build template.

Declaration
[JsonProperty("build")]
public virtual Build Build { get; set; }
Property Value
Type Description
Build

CreateTime

Output only. Time when the trigger was created.

Declaration
[JsonProperty("createTime")]
public virtual object CreateTime { get; set; }
Property Value
Type Description
System.Object

Description

Human-readable description of this trigger.

Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type Description
System.String

Disabled

If true, the trigger will never automatically execute a build.

Declaration
[JsonProperty("disabled")]
public virtual bool? Disabled { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

Filename

Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).

Declaration
[JsonProperty("filename")]
public virtual string Filename { get; set; }
Property Value
Type Description
System.String

Filter

Optional. A Common Expression Language string.

Declaration
[JsonProperty("filter")]
public virtual string Filter { get; set; }
Property Value
Type Description
System.String

Github

GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with trigger_template.

Declaration
[JsonProperty("github")]
public virtual GitHubEventsConfig Github { get; set; }
Property Value
Type Description
GitHubEventsConfig

Id

Output only. Unique identifier of the trigger.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
System.String

IgnoredFiles

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.

Declaration
[JsonProperty("ignoredFiles")]
public virtual IList<string> IgnoredFiles { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

IncludedFiles

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.

Declaration
[JsonProperty("includedFiles")]
public virtual IList<string> IncludedFiles { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

Name

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.

Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type Description
System.String

PubsubConfig

Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.

Declaration
[JsonProperty("pubsubConfig")]
public virtual PubsubConfig PubsubConfig { get; set; }
Property Value
Type Description
PubsubConfig

Substitutions

Substitutions for Build resource. The keys must match the following regular expression: ^_[A-Z0-9_]+$.

Declaration
[JsonProperty("substitutions")]
public virtual IDictionary<string, string> Substitutions { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

Tags

Tags for annotation of a BuildTrigger

Declaration
[JsonProperty("tags")]
public virtual IList<string> Tags { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

TriggerTemplate

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.

Declaration
[JsonProperty("triggerTemplate")]
public virtual RepoSource TriggerTemplate { get; set; }
Property Value
Type Description
RepoSource

Implements

Google.Apis.Requests.IDirectResponseSchema
In This Article
Back to top