| Package | Description |
|---|---|
| com.google.api.services.cloudbuild.v1 | |
| com.google.api.services.cloudbuild.v1.model |
| Modifier and Type | Method and Description |
|---|---|
CloudBuild.Projects.Locations.Triggers.Create |
CloudBuild.Projects.Locations.Triggers.create(String parent,
BuildTrigger content)
Creates a new `BuildTrigger`.
|
CloudBuild.Projects.Triggers.Create |
CloudBuild.Projects.Triggers.create(String projectId,
BuildTrigger content)
Creates a new `BuildTrigger`.
|
CloudBuild.Projects.Locations.Triggers.Patch |
CloudBuild.Projects.Locations.Triggers.patch(String resourceName,
BuildTrigger content)
Updates a `BuildTrigger` by its project ID and trigger ID.
|
CloudBuild.Projects.Triggers.Patch |
CloudBuild.Projects.Triggers.patch(String projectId,
String triggerId,
BuildTrigger content)
Updates a `BuildTrigger` by its project ID and trigger ID.
|
| Constructor and Description |
|---|
Create(String parent,
BuildTrigger content)
Creates a new `BuildTrigger`.
|
Create(String projectId,
BuildTrigger content)
Creates a new `BuildTrigger`.
|
Patch(String resourceName,
BuildTrigger content)
Updates a `BuildTrigger` by its project ID and trigger ID.
|
Patch(String projectId,
String triggerId,
BuildTrigger content)
Updates a `BuildTrigger` by its project ID and trigger ID.
|
| Modifier and Type | Method and Description |
|---|---|
BuildTrigger |
BuildTrigger.clone() |
BuildTrigger |
BuildTrigger.set(String fieldName,
Object value) |
BuildTrigger |
BuildTrigger.setApprovalConfig(ApprovalConfig approvalConfig)
Configuration for manual approval to start a build invocation of this BuildTrigger.
|
BuildTrigger |
BuildTrigger.setAutodetect(Boolean autodetect)
Autodetect build configuration.
|
BuildTrigger |
BuildTrigger.setBitbucketServerTriggerConfig(BitbucketServerTriggerConfig bitbucketServerTriggerConfig)
BitbucketServerTriggerConfig describes the configuration of a trigger that creates a build
whenever a Bitbucket Server event is received.
|
BuildTrigger |
BuildTrigger.setBuild(Build build)
Contents of the build template.
|
BuildTrigger |
BuildTrigger.setCreateTime(String createTime)
Output only.
|
BuildTrigger |
BuildTrigger.setDescription(String description)
Human-readable description of this trigger.
|
BuildTrigger |
BuildTrigger.setDisabled(Boolean disabled)
If true, the trigger will never automatically execute a build.
|
BuildTrigger |
BuildTrigger.setEventType(String eventType)
EventType allows the user to explicitly set the type of event to which this BuildTrigger should
respond.
|
BuildTrigger |
BuildTrigger.setFilename(String filename)
Path, from the source root, to the build configuration file (i.e.
|
BuildTrigger |
BuildTrigger.setFilter(String filter)
A Common Expression Language string.
|
BuildTrigger |
BuildTrigger.setGitFileSource(GitFileSource gitFileSource)
The file source describing the local or remote Build template.
|
BuildTrigger |
BuildTrigger.setGithub(GitHubEventsConfig github)
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a
GitHub event is received.
|
BuildTrigger |
BuildTrigger.setGitlabEnterpriseEventsConfig(GitLabEventsConfig gitlabEnterpriseEventsConfig)
GitLabEnterpriseEventsConfig describes the configuration of a trigger that creates a build
whenever a GitLab Enterprise event is received.
|
BuildTrigger |
BuildTrigger.setId(String id)
Output only.
|
BuildTrigger |
BuildTrigger.setIgnoredFiles(List<String> ignoredFiles)
ignored_files and included_files are file glob matches using
https://golang.org/pkg/path/filepath/#Match extended with support for "**".
|
BuildTrigger |
BuildTrigger.setIncludeBuildLogs(String includeBuildLogs)
If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build
status is final.
|
BuildTrigger |
BuildTrigger.setIncludedFiles(List<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.
|
BuildTrigger |
BuildTrigger.setName(String name)
User-assigned name of the trigger.
|
BuildTrigger |
BuildTrigger.setPubsubConfig(PubsubConfig pubsubConfig)
PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub
message is published.
|
BuildTrigger |
BuildTrigger.setRepositoryEventConfig(RepositoryEventConfig repositoryEventConfig)
The configuration of a trigger that creates a build whenever an event from Repo API is
received.
|
BuildTrigger |
BuildTrigger.setResourceName(String resourceName)
The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`,
where {trigger} is a unique identifier generated by the service.
|
BuildTrigger |
BuildTrigger.setServiceAccount(String serviceAccount)
The service account used for all user-controlled operations including UpdateBuildTrigger,
RunBuildTrigger, CreateBuild, and CancelBuild.
|
BuildTrigger |
BuildTrigger.setSourceToBuild(GitRepoSource sourceToBuild)
The repo and ref of the repository from which to build.
|
BuildTrigger |
BuildTrigger.setSubstitutions(Map<String,String> substitutions)
Substitutions for Build resource.
|
BuildTrigger |
BuildTrigger.setTags(List<String> tags)
Tags for annotation of a `BuildTrigger`
|
BuildTrigger |
BuildTrigger.setTriggerTemplate(RepoSource triggerTemplate)
Template describing the types of source changes to trigger a build.
|
BuildTrigger |
BuildTrigger.setWebhookConfig(WebhookConfig webhookConfig)
WebhookConfig describes the configuration of a trigger that creates a build whenever a webhook
is sent to a trigger's webhook URL.
|
| Modifier and Type | Method and Description |
|---|---|
List<BuildTrigger> |
ListBuildTriggersResponse.getTriggers()
`BuildTriggers` for the project, sorted by `create_time` descending.
|
| Modifier and Type | Method and Description |
|---|---|
ListBuildTriggersResponse |
ListBuildTriggersResponse.setTriggers(List<BuildTrigger> triggers)
`BuildTriggers` for the project, sorted by `create_time` descending.
|
Copyright © 2011–2024 Google. All rights reserved.