GetTriggerResult

data class GetTriggerResult(val approvalConfig: ApprovalConfigResponse, val autodetect: Boolean, val bitbucketServerTriggerConfig: BitbucketServerTriggerConfigResponse, val build: BuildResponse, val createTime: String, val description: String, val disabled: Boolean, val eventType: String, val filename: String, val filter: String, val gitFileSource: GitFileSourceResponse, val github: GitHubEventsConfigResponse, val gitlabEnterpriseEventsConfig: GitLabEventsConfigResponse, val ignoredFiles: List<String>, val includeBuildLogs: String, val includedFiles: List<String>, val name: String, val pubsubConfig: PubsubConfigResponse, val repositoryEventConfig: RepositoryEventConfigResponse, val resourceName: String, val serviceAccount: String, val sourceToBuild: GitRepoSourceResponse, val substitutions: Map<String, String>, val tags: List<String>, val triggerTemplate: RepoSourceResponse, val webhookConfig: WebhookConfigResponse)

Constructors

Link copied to clipboard
fun GetTriggerResult(approvalConfig: ApprovalConfigResponse, autodetect: Boolean, bitbucketServerTriggerConfig: BitbucketServerTriggerConfigResponse, build: BuildResponse, createTime: String, description: String, disabled: Boolean, eventType: String, filename: String, filter: String, gitFileSource: GitFileSourceResponse, github: GitHubEventsConfigResponse, gitlabEnterpriseEventsConfig: GitLabEventsConfigResponse, ignoredFiles: List<String>, includeBuildLogs: String, includedFiles: List<String>, name: String, pubsubConfig: PubsubConfigResponse, repositoryEventConfig: RepositoryEventConfigResponse, resourceName: String, serviceAccount: String, sourceToBuild: GitRepoSourceResponse, substitutions: Map<String, String>, tags: List<String>, triggerTemplate: RepoSourceResponse, webhookConfig: WebhookConfigResponse)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Configuration for manual approval to start a build invocation of this BuildTrigger.

Link copied to clipboard

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.

Link copied to clipboard

BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build whenever a Bitbucket Server event is received.

Link copied to clipboard

Contents of the build template.

Link copied to clipboard

Time when the trigger was created.

Link copied to clipboard

Human-readable description of this trigger.

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

A Common Expression Language string.

Link copied to clipboard

The file source describing the local or remote Build template.

Link copied to clipboard

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

Link copied to clipboard

GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build whenever a GitLab Enterprise event is received.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

The configuration of a trigger that creates a build whenever an event from Repo API is received.

Link copied to clipboard

The Trigger name with format: projects/{project}/locations/{location}/triggers/{trigger}, where {trigger} is a unique identifier generated by the service.

Link copied to clipboard

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}

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

Tags for annotation of a BuildTrigger

Link copied to clipboard

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 copied to clipboard

WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook is sent to a trigger's webhook URL.