Class TriggerState
Inherited Members
Namespace: Pulumi.Gcp.CloudBuild
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class TriggerState : ResourceArgs
Constructors
View SourceTriggerState()
Declaration
public TriggerState()
Properties
View SourceBuild
Contents of the build template. Either a filename or build template must be provided. Structure is documented below.
Declaration
public Input<TriggerBuildGetArgs> Build { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<TriggerBuildGetArgs> |
CreateTime
Time when the trigger was created.
Declaration
public Input<string> CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Description
Human-readable description of the trigger.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Disabled
Whether the trigger is disabled or not. If true, the trigger will never result in a build.
Declaration
public Input<bool> Disabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Filename
Path, from the source root, to a file whose contents is used for the template. Either a filename or build template must be provided.
Declaration
public Input<string> Filename { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Github
Describes the configuration of a trigger that creates a build whenever a GitHub event is received.
One of trigger_template or github must be provided. Structure is documented below.
Declaration
public Input<TriggerGithubGetArgs> Github { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<TriggerGithubGetArgs> |
IgnoredFiles
ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match
extended with support for **.
If ignoredFiles and changed files are both empty, then they are not
used to determine whether or not to trigger a build.
If ignoredFiles 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 ignoredFiles globs, then we do not trigger a build.
Declaration
public InputList<string> IgnoredFiles { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
IncludedFiles
ignoredFiles and includedFiles are file glob matches using https://golang.org/pkg/path/filepath/#Match
extended with support for **.
If any of the files altered in the commit pass the ignoredFiles filter
and includedFiles 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 ignoredFiles filter
and includedFiles is not empty, then we make sure that at least one of
those files matches a includedFiles glob. If not, then we do not trigger
a build.
Declaration
public InputList<string> IncludedFiles { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Name
Name of the volume to mount. Volume names must be unique per build step and must be valid names for Docker volumes. Each named volume must be used by at least two build steps.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Input<string> Project { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Substitutions
Substitutions data for Build resource.
Declaration
public InputMap<string> Substitutions { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.String> |
TriggerId
The unique identifier for the trigger.
Declaration
public Input<string> TriggerId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<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.
One of trigger_template or github must be provided. Structure is documented below.
Declaration
public Input<TriggerTriggerTemplateGetArgs> TriggerTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<TriggerTriggerTemplateGetArgs> |