blob: 1c03a520d5166b71522db198d80b9b78d6250d6f [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="cloudbuild_v1.html">Cloud Build API</a> . <a href="cloudbuild_v1.projects.html">projects</a> . <a href="cloudbuild_v1.projects.triggers.html">triggers</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(projectId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new `BuildTrigger`. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070083<p class="toc_element">
84 <code><a href="#delete">delete(projectId, triggerId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070086<p class="toc_element">
87 <code><a href="#get">get(projectId, triggerId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Returns information about a `BuildTrigger`. This API is experimental.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070089<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080090 <code><a href="#list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Lists existing `BuildTrigger`s. This API is experimental.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#patch">patch(projectId, triggerId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#run">run(projectId, triggerId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Runs a `BuildTrigger` at a particular source revision.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700106
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700107<div class="method">
108 <code class="details" id="create">create(projectId, body=None, x__xgafv=None)</code>
109 <pre>Creates a new `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700110
111Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 projectId: string, Required. ID of the project for which to configure automatic builds. (required)
113 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700114 The object takes the form of:
115
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116{ # Configuration for an automated build in response to source repository changes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800117 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
118 &quot;A String&quot;,
119 ],
120 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
121 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # 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`.
122 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
123 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800124 &quot;a_key&quot;: &quot;A String&quot;,
125 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800126 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
127 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
128 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
129 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
130 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
131 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
132 },
133 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
134 &quot;a_key&quot;: &quot;A String&quot;,
135 },
136 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
137 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. 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.
138 &quot;A String&quot;,
139 ],
140 &quot;includedFiles&quot;: [ # 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.
141 &quot;A String&quot;,
142 ],
143 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
144 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
145 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
146 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800147 &quot;A String&quot;,
148 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800149 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
150 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
151 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
152 &quot;A String&quot;,
153 ],
154 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
155 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
156 &quot;A String&quot;,
157 ],
158 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
159 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
160 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800161 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800162 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
163 },
164 },
165 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
166 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
167 &quot;a_key&quot;: &quot;A String&quot;,
168 },
169 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
170 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
171 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
172 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
173 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
174 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
175 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
176 },
177 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
178 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
179 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800180 &quot;a_key&quot;: &quot;A String&quot;,
181 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800182 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
183 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
184 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
185 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
186 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
187 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
188 },
189 },
190 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
191 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
192 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
193 &quot;a_key&quot;: &quot;A String&quot;,
194 },
195 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
196 },
197 ],
198 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
199 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
200 &quot;a_key&quot;: { # Start and end times for a build execution phase.
201 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
202 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
203 },
204 },
205 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
206 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
207 { # A step in the build pipeline.
208 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800209 &quot;A String&quot;,
210 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800211 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800212 &quot;A String&quot;,
213 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800214 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
215 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
216 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800217 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800218 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
219 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
220 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
221 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
222 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
223 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
224 },
225 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
226 &quot;A String&quot;,
227 ],
228 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
229 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
230 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
231 &quot;A String&quot;,
232 ],
233 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
234 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
235 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
236 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
237 &quot;name&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800238 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800239 ],
240 },
241 ],
242 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
243 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
244 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
245 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
246 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
247 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
248 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
249 &quot;A String&quot;,
250 ],
251 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
252 &quot;A String&quot;,
253 ],
254 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
255 &quot;A String&quot;,
256 ],
257 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
258 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
259 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
260 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
261 &quot;name&quot;: &quot;A String&quot;, # 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.
262 },
263 ],
264 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
265 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
266 },
267 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
268 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
269 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
270 &quot;A String&quot;,
271 ],
272 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
273 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
274 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
275 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
276 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
277 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
278 },
279 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
280 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
281 &quot;fileHash&quot;: [ # Collection of file hashes.
282 { # Container message for hash values.
283 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
284 &quot;value&quot;: &quot;A String&quot;, # The hash value.
285 },
286 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800287 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800288 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800289 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
290 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
291 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
292 &quot;a_key&quot;: &quot;A String&quot;,
293 },
294 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
295 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
296 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
297 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
298 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
299 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
300 },
301 },
302 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
303 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
304 &quot;images&quot;: [ # Container images that were built as a part of the build.
305 { # An image built by the pipeline.
306 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
307 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
308 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
309 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
310 },
311 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
312 },
313 ],
314 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
315 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
316 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
317 },
318 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
319 &quot;A String&quot;,
320 ],
321 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
322 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
323 &quot;A String&quot;,
324 ],
325 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
326 },
327 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
328 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
329 },
330 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
331 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
332 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
333 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
334 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
335 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
336 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
337 },
338 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
339 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
340 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
341 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
342 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
343 },
344 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
345 },
346 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
347 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
348 &quot;name&quot;: &quot;A String&quot;, # 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.
349}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700350
351 x__xgafv: string, V1 error format.
352 Allowed values
353 1 - v1 error format
354 2 - v2 error format
355
356Returns:
357 An object of the form:
358
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700359 { # Configuration for an automated build in response to source repository changes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800360 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
361 &quot;A String&quot;,
362 ],
363 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
364 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # 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`.
365 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
366 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800367 &quot;a_key&quot;: &quot;A String&quot;,
368 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800369 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
370 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
371 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
372 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
373 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
374 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
375 },
376 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
377 &quot;a_key&quot;: &quot;A String&quot;,
378 },
379 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
380 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. 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.
381 &quot;A String&quot;,
382 ],
383 &quot;includedFiles&quot;: [ # 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.
384 &quot;A String&quot;,
385 ],
386 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
387 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
388 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
389 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800390 &quot;A String&quot;,
391 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800392 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
393 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
394 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
395 &quot;A String&quot;,
396 ],
397 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
398 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
399 &quot;A String&quot;,
400 ],
401 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
402 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
403 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800404 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800405 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
406 },
407 },
408 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
409 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
410 &quot;a_key&quot;: &quot;A String&quot;,
411 },
412 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
413 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
414 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
415 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
416 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
417 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
418 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
419 },
420 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
421 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
422 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800423 &quot;a_key&quot;: &quot;A String&quot;,
424 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800425 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
426 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
427 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
428 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
429 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
430 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
431 },
432 },
433 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
434 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
435 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
436 &quot;a_key&quot;: &quot;A String&quot;,
437 },
438 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
439 },
440 ],
441 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
442 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
443 &quot;a_key&quot;: { # Start and end times for a build execution phase.
444 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
445 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
446 },
447 },
448 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
449 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
450 { # A step in the build pipeline.
451 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800452 &quot;A String&quot;,
453 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800454 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800455 &quot;A String&quot;,
456 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800457 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
458 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
459 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800460 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800461 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
462 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
463 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
464 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
465 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
466 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
467 },
468 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
469 &quot;A String&quot;,
470 ],
471 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
472 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
473 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
474 &quot;A String&quot;,
475 ],
476 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
477 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
478 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
479 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
480 &quot;name&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800481 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800482 ],
483 },
484 ],
485 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
486 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
487 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
488 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
489 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
490 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
491 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
492 &quot;A String&quot;,
493 ],
494 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
495 &quot;A String&quot;,
496 ],
497 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
498 &quot;A String&quot;,
499 ],
500 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
501 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
502 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
503 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
504 &quot;name&quot;: &quot;A String&quot;, # 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.
505 },
506 ],
507 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
508 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
509 },
510 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
511 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
512 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
513 &quot;A String&quot;,
514 ],
515 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
516 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
517 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
518 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
519 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
520 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
521 },
522 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
523 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
524 &quot;fileHash&quot;: [ # Collection of file hashes.
525 { # Container message for hash values.
526 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
527 &quot;value&quot;: &quot;A String&quot;, # The hash value.
528 },
529 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800530 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800531 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800532 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
533 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
534 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
535 &quot;a_key&quot;: &quot;A String&quot;,
536 },
537 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
538 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
539 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
540 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
541 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
542 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
543 },
544 },
545 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
546 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
547 &quot;images&quot;: [ # Container images that were built as a part of the build.
548 { # An image built by the pipeline.
549 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
550 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
551 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
552 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
553 },
554 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
555 },
556 ],
557 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
558 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
559 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
560 },
561 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
562 &quot;A String&quot;,
563 ],
564 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
565 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
566 &quot;A String&quot;,
567 ],
568 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
569 },
570 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
571 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
572 },
573 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
574 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
575 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
576 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
577 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
578 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
579 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
580 },
581 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
582 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
583 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
584 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
585 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
586 },
587 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
588 },
589 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
590 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
591 &quot;name&quot;: &quot;A String&quot;, # 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.
592 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700593</div>
594
595<div class="method">
596 <code class="details" id="delete">delete(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700597 <pre>Deletes a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700598
599Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700600 projectId: string, Required. ID of the project that owns the trigger. (required)
601 triggerId: string, Required. ID of the `BuildTrigger` to delete. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700602 x__xgafv: string, V1 error format.
603 Allowed values
604 1 - v1 error format
605 2 - v2 error format
606
607Returns:
608 An object of the form:
609
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700610 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700611 }</pre>
612</div>
613
614<div class="method">
615 <code class="details" id="get">get(projectId, triggerId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700616 <pre>Returns information about a `BuildTrigger`. This API is experimental.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700617
618Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700619 projectId: string, Required. ID of the project that owns the trigger. (required)
620 triggerId: string, Required. Identifier (`id` or `name`) of the `BuildTrigger` to get. (required)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700621 x__xgafv: string, V1 error format.
622 Allowed values
623 1 - v1 error format
624 2 - v2 error format
625
626Returns:
627 An object of the form:
628
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700629 { # Configuration for an automated build in response to source repository changes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800630 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
631 &quot;A String&quot;,
632 ],
633 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
634 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # 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`.
635 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
636 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800637 &quot;a_key&quot;: &quot;A String&quot;,
638 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800639 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
640 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
641 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
642 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
643 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
644 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
645 },
646 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
647 &quot;a_key&quot;: &quot;A String&quot;,
648 },
649 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
650 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. 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.
651 &quot;A String&quot;,
652 ],
653 &quot;includedFiles&quot;: [ # 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.
654 &quot;A String&quot;,
655 ],
656 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
657 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
658 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
659 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800660 &quot;A String&quot;,
661 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800662 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
663 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
664 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
665 &quot;A String&quot;,
666 ],
667 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
668 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
669 &quot;A String&quot;,
670 ],
671 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
672 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
673 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800674 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800675 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
676 },
677 },
678 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
679 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
680 &quot;a_key&quot;: &quot;A String&quot;,
681 },
682 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
683 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
684 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
685 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
686 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
687 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
688 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
689 },
690 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
691 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
692 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800693 &quot;a_key&quot;: &quot;A String&quot;,
694 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800695 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
696 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
697 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
698 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
699 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
700 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
701 },
702 },
703 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
704 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
705 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
706 &quot;a_key&quot;: &quot;A String&quot;,
707 },
708 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
709 },
710 ],
711 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
712 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
713 &quot;a_key&quot;: { # Start and end times for a build execution phase.
714 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
715 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
716 },
717 },
718 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
719 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
720 { # A step in the build pipeline.
721 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800722 &quot;A String&quot;,
723 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800724 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800725 &quot;A String&quot;,
726 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800727 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
728 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
729 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800730 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800731 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
732 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
733 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
734 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
735 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
736 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
737 },
738 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
739 &quot;A String&quot;,
740 ],
741 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
742 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
743 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
744 &quot;A String&quot;,
745 ],
746 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
747 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
748 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
749 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
750 &quot;name&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800751 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800752 ],
753 },
754 ],
755 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
756 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
757 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
758 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
759 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
760 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
761 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
762 &quot;A String&quot;,
763 ],
764 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
765 &quot;A String&quot;,
766 ],
767 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
768 &quot;A String&quot;,
769 ],
770 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
771 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
772 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
773 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
774 &quot;name&quot;: &quot;A String&quot;, # 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.
775 },
776 ],
777 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
778 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
779 },
780 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
781 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
782 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
783 &quot;A String&quot;,
784 ],
785 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
786 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
787 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
788 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
789 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
790 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
791 },
792 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
793 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
794 &quot;fileHash&quot;: [ # Collection of file hashes.
795 { # Container message for hash values.
796 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
797 &quot;value&quot;: &quot;A String&quot;, # The hash value.
798 },
799 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800800 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800801 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800802 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
803 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
804 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
805 &quot;a_key&quot;: &quot;A String&quot;,
806 },
807 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
808 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
809 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
810 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
811 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
812 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
813 },
814 },
815 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
816 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
817 &quot;images&quot;: [ # Container images that were built as a part of the build.
818 { # An image built by the pipeline.
819 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
820 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
821 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
822 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
823 },
824 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
825 },
826 ],
827 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
828 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
829 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
830 },
831 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
832 &quot;A String&quot;,
833 ],
834 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
835 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
836 &quot;A String&quot;,
837 ],
838 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
839 },
840 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
841 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
842 },
843 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
844 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
845 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
846 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
847 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
848 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
849 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
850 },
851 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
852 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
853 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
854 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
855 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
856 },
857 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
858 },
859 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
860 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
861 &quot;name&quot;: &quot;A String&quot;, # 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.
862 }</pre>
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800863</div>
864
865<div class="method">
866 <code class="details" id="list">list(projectId, pageSize=None, pageToken=None, x__xgafv=None)</code>
867 <pre>Lists existing `BuildTrigger`s. This API is experimental.
868
869Args:
870 projectId: string, Required. ID of the project for which to list BuildTriggers. (required)
871 pageSize: integer, Number of results to return in the list.
872 pageToken: string, Token to provide to skip to a particular spot in the list.
873 x__xgafv: string, V1 error format.
874 Allowed values
875 1 - v1 error format
876 2 - v2 error format
877
878Returns:
879 An object of the form:
880
881 { # Response containing existing `BuildTriggers`.
882 &quot;triggers&quot;: [ # `BuildTriggers` for the project, sorted by `create_time` descending.
883 { # Configuration for an automated build in response to source repository changes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800884 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
885 &quot;A String&quot;,
886 ],
887 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
888 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # 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`.
889 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
890 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800891 &quot;a_key&quot;: &quot;A String&quot;,
892 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800893 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
894 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
895 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
896 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
897 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
898 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
899 },
900 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
901 &quot;a_key&quot;: &quot;A String&quot;,
902 },
903 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
904 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. 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.
905 &quot;A String&quot;,
906 ],
907 &quot;includedFiles&quot;: [ # 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.
908 &quot;A String&quot;,
909 ],
910 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
911 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
912 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
913 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800914 &quot;A String&quot;,
915 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800916 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
917 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
918 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
919 &quot;A String&quot;,
920 ],
921 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
922 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
923 &quot;A String&quot;,
924 ],
925 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
926 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
927 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800928 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800929 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
930 },
931 },
932 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
933 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
934 &quot;a_key&quot;: &quot;A String&quot;,
935 },
936 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
937 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
938 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
939 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
940 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
941 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
942 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
943 },
944 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
945 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
946 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800947 &quot;a_key&quot;: &quot;A String&quot;,
948 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800949 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
950 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
951 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
952 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
953 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
954 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
955 },
956 },
957 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
958 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
959 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
960 &quot;a_key&quot;: &quot;A String&quot;,
961 },
962 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
963 },
964 ],
965 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
966 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
967 &quot;a_key&quot;: { # Start and end times for a build execution phase.
968 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
969 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
970 },
971 },
972 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
973 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
974 { # A step in the build pipeline.
975 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800976 &quot;A String&quot;,
977 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800978 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800979 &quot;A String&quot;,
980 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800981 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
982 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
983 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800984 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800985 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
986 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
987 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
988 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
989 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
990 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
991 },
992 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
993 &quot;A String&quot;,
994 ],
995 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
996 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
997 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
998 &quot;A String&quot;,
999 ],
1000 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
1001 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
1002 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1003 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1004 &quot;name&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001005 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001006 ],
1007 },
1008 ],
1009 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1010 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1011 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
1012 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
1013 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1014 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1015 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1016 &quot;A String&quot;,
1017 ],
1018 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1019 &quot;A String&quot;,
1020 ],
1021 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
1022 &quot;A String&quot;,
1023 ],
1024 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1025 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
1026 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1027 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1028 &quot;name&quot;: &quot;A String&quot;, # 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.
1029 },
1030 ],
1031 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
1032 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
1033 },
1034 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1035 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1036 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1037 &quot;A String&quot;,
1038 ],
1039 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1040 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1041 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1042 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1043 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1044 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1045 },
1046 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
1047 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
1048 &quot;fileHash&quot;: [ # Collection of file hashes.
1049 { # Container message for hash values.
1050 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1051 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1052 },
1053 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001054 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001055 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001056 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
1057 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1058 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1059 &quot;a_key&quot;: &quot;A String&quot;,
1060 },
1061 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1062 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1063 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1064 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1065 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1066 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1067 },
1068 },
1069 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
1070 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1071 &quot;images&quot;: [ # Container images that were built as a part of the build.
1072 { # An image built by the pipeline.
1073 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1074 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1075 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1076 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1077 },
1078 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1079 },
1080 ],
1081 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1082 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1083 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1084 },
1085 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
1086 &quot;A String&quot;,
1087 ],
1088 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1089 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1090 &quot;A String&quot;,
1091 ],
1092 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1093 },
1094 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1095 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001096 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001097 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
1098 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
1099 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1100 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1101 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1102 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1103 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1104 },
1105 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
1106 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1107 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1108 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1109 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1110 },
1111 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1112 },
1113 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1114 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
1115 &quot;name&quot;: &quot;A String&quot;, # 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.
1116 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001117 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001118 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to receive the next page of results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001119 }</pre>
1120</div>
1121
1122<div class="method">
1123 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1124 <pre>Retrieves the next page of results.
1125
1126Args:
1127 previous_request: The request for the previous page. (required)
1128 previous_response: The response from the request for the previous page. (required)
1129
1130Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001131 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001132 page. Returns None if there are no more items in the collection.
1133 </pre>
1134</div>
1135
1136<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001137 <code class="details" id="patch">patch(projectId, triggerId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001138 <pre>Updates a `BuildTrigger` by its project ID and trigger ID. This API is experimental.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001139
1140Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001141 projectId: string, Required. ID of the project that owns the trigger. (required)
1142 triggerId: string, Required. ID of the `BuildTrigger` to update. (required)
1143 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001144 The object takes the form of:
1145
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001146{ # Configuration for an automated build in response to source repository changes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001147 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1148 &quot;A String&quot;,
1149 ],
1150 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1151 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # 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`.
1152 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1153 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001154 &quot;a_key&quot;: &quot;A String&quot;,
1155 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001156 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1157 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1158 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1159 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1160 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1161 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1162 },
1163 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1164 &quot;a_key&quot;: &quot;A String&quot;,
1165 },
1166 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1167 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. 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.
1168 &quot;A String&quot;,
1169 ],
1170 &quot;includedFiles&quot;: [ # 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.
1171 &quot;A String&quot;,
1172 ],
1173 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
1174 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
1175 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1176 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001177 &quot;A String&quot;,
1178 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001179 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
1180 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
1181 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
1182 &quot;A String&quot;,
1183 ],
1184 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
1185 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1186 &quot;A String&quot;,
1187 ],
1188 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1189 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1190 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001191 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001192 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
1193 },
1194 },
1195 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1196 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1197 &quot;a_key&quot;: &quot;A String&quot;,
1198 },
1199 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1200 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
1201 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1202 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1203 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1204 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1205 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1206 },
1207 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
1208 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1209 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001210 &quot;a_key&quot;: &quot;A String&quot;,
1211 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001212 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1213 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1214 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1215 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1216 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1217 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1218 },
1219 },
1220 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1221 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
1222 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
1223 &quot;a_key&quot;: &quot;A String&quot;,
1224 },
1225 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1226 },
1227 ],
1228 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1229 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
1230 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1231 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1232 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1233 },
1234 },
1235 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
1236 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1237 { # A step in the build pipeline.
1238 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001239 &quot;A String&quot;,
1240 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001241 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001242 &quot;A String&quot;,
1243 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001244 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1245 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1246 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001247 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001248 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
1249 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
1250 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
1251 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
1252 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1253 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1254 },
1255 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1256 &quot;A String&quot;,
1257 ],
1258 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
1259 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
1260 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
1261 &quot;A String&quot;,
1262 ],
1263 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
1264 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
1265 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1266 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1267 &quot;name&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001268 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001269 ],
1270 },
1271 ],
1272 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1273 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1274 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
1275 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
1276 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1277 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1278 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1279 &quot;A String&quot;,
1280 ],
1281 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1282 &quot;A String&quot;,
1283 ],
1284 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
1285 &quot;A String&quot;,
1286 ],
1287 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1288 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
1289 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1290 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1291 &quot;name&quot;: &quot;A String&quot;, # 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.
1292 },
1293 ],
1294 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
1295 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
1296 },
1297 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1298 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1299 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1300 &quot;A String&quot;,
1301 ],
1302 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1303 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1304 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1305 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1306 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1307 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1308 },
1309 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
1310 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
1311 &quot;fileHash&quot;: [ # Collection of file hashes.
1312 { # Container message for hash values.
1313 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1314 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1315 },
1316 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001317 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001318 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001319 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
1320 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1321 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1322 &quot;a_key&quot;: &quot;A String&quot;,
1323 },
1324 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1325 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1326 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1327 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1328 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1329 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1330 },
1331 },
1332 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
1333 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1334 &quot;images&quot;: [ # Container images that were built as a part of the build.
1335 { # An image built by the pipeline.
1336 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1337 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1338 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1339 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1340 },
1341 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1342 },
1343 ],
1344 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1345 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1346 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1347 },
1348 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
1349 &quot;A String&quot;,
1350 ],
1351 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1352 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1353 &quot;A String&quot;,
1354 ],
1355 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1356 },
1357 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1358 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1359 },
1360 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
1361 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
1362 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1363 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1364 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1365 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1366 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1367 },
1368 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
1369 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1370 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1371 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1372 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1373 },
1374 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1375 },
1376 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1377 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
1378 &quot;name&quot;: &quot;A String&quot;, # 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.
1379}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001380
1381 x__xgafv: string, V1 error format.
1382 Allowed values
1383 1 - v1 error format
1384 2 - v2 error format
1385
1386Returns:
1387 An object of the form:
1388
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001389 { # Configuration for an automated build in response to source repository changes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001390 &quot;tags&quot;: [ # Tags for annotation of a `BuildTrigger`
1391 &quot;A String&quot;,
1392 ],
1393 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the trigger.
1394 &quot;triggerTemplate&quot;: { # Location of the source in a Google Cloud Source Repository. # 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`.
1395 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1396 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001397 &quot;a_key&quot;: &quot;A String&quot;,
1398 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001399 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1400 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1401 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1402 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1403 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1404 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1405 },
1406 &quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
1407 &quot;a_key&quot;: &quot;A String&quot;,
1408 },
1409 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the trigger was created.
1410 &quot;ignoredFiles&quot;: [ # ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for &quot;**&quot;. 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.
1411 &quot;A String&quot;,
1412 ],
1413 &quot;includedFiles&quot;: [ # 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.
1414 &quot;A String&quot;,
1415 ],
1416 &quot;build&quot;: { # A build resource in the Cloud Build API. At a high level, a `Build` describes where to find source code, how to build it (for example, the builder image to run on the source), and where to store the built artifacts. Fields can include the following variables, which will be expanded when the build is created: - $PROJECT_ID: the project ID of the build. - $BUILD_ID: the autogenerated ID of the build. - $REPO_NAME: the source repository name specified by RepoSource. - $BRANCH_NAME: the branch name specified by RepoSource. - $TAG_NAME: the tag name specified by RepoSource. - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or resolved from the specified branch or tag. - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. # Contents of the build template.
1417 &quot;finishTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build&#x27;s execution.
1418 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build.
1419 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the `Build` resource&#x27;s results field. If any of the images fail to be pushed, the build status is marked `FAILURE`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001420 &quot;A String&quot;,
1421 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001422 &quot;serviceAccount&quot;: &quot;A String&quot;, # IAM service account whose credentials will be used at build runtime. Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. ACCOUNT can be email address or uniqueId of the service account. This field is in alpha and is not publicly available.
1423 &quot;artifacts&quot;: { # Artifacts produced by a build that should be uploaded upon successful completion of all build steps. # Artifacts produced by the build that should be uploaded upon successful completion of all build steps.
1424 &quot;images&quot;: [ # A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account&#x27;s credentials. The digests of the pushed images will be stored in the Build resource&#x27;s results field. If any of the images fail to be pushed, the build is marked FAILURE.
1425 &quot;A String&quot;,
1426 ],
1427 &quot;objects&quot;: { # Files in the workspace to upload to Cloud Storage upon successful completion of all build steps. # A list of objects to be uploaded to Cloud Storage upon successful completion of all build steps. Files in the workspace matching specified paths globs will be uploaded to the specified Cloud Storage location using the builder service account&#x27;s credentials. The location and generation of the uploaded objects will be stored in the Build resource&#x27;s results field. If any objects fail to be pushed, the build is marked FAILURE.
1428 &quot;paths&quot;: [ # Path globs used to match files in the build&#x27;s workspace.
1429 &quot;A String&quot;,
1430 ],
1431 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing all artifact objects.
1432 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1433 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001434 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001435 &quot;location&quot;: &quot;A String&quot;, # Cloud Storage bucket and optional object path, in the form &quot;gs://bucket/path/to/somewhere/&quot;. (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.
1436 },
1437 },
1438 &quot;startTime&quot;: &quot;A String&quot;, # Output only. Time at which execution of the build was started.
1439 &quot;substitutions&quot;: { # Substitutions data for `Build` resource.
1440 &quot;a_key&quot;: &quot;A String&quot;,
1441 },
1442 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time at which the request to create the build was received.
1443 &quot;timeout&quot;: &quot;A String&quot;, # Amount of time that this build should be allowed to run, to second granularity. If this amount of time elapses, work on the build will cease and the build status will be `TIMEOUT`. `timeout` starts ticking from `startTime`. Default time is ten minutes.
1444 &quot;source&quot;: { # Location of the source in a supported storage service. # The location of the source files to build.
1445 &quot;storageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in Google Cloud Storage.
1446 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1447 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1448 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1449 },
1450 &quot;repoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # If provided, get the source from this location in a Cloud Source Repository.
1451 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1452 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001453 &quot;a_key&quot;: &quot;A String&quot;,
1454 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001455 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1456 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1457 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1458 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1459 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1460 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1461 },
1462 },
1463 &quot;secrets&quot;: [ # Secrets to decrypt using Cloud Key Management Service.
1464 { # Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.
1465 &quot;secretEnv&quot;: { # Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build&#x27;s secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build&#x27;s secrets.
1466 &quot;a_key&quot;: &quot;A String&quot;,
1467 },
1468 &quot;kmsKeyName&quot;: &quot;A String&quot;, # Cloud KMS key name to use to decrypt these envs.
1469 },
1470 ],
1471 &quot;statusDetail&quot;: &quot;A String&quot;, # Output only. Customer-readable message about the current status.
1472 &quot;timing&quot;: { # Output only. Stores timing information for phases of the build. Valid keys are: * BUILD: time to execute all build steps * PUSH: time to push all specified images. * FETCHSOURCE: time to fetch source. If the build does not specify source or images, these keys will not be included.
1473 &quot;a_key&quot;: { # Start and end times for a build execution phase.
1474 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1475 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1476 },
1477 },
1478 &quot;queueTtl&quot;: &quot;A String&quot;, # TTL in queue for this build. If provided and the build is enqueued longer than this value, the build will expire and the build status will be `EXPIRED`. The TTL starts ticking from create_time.
1479 &quot;steps&quot;: [ # Required. The operations to be performed on the workspace.
1480 { # A step in the build pipeline.
1481 &quot;waitFor&quot;: [ # The ID(s) of the step(s) that this build step depends on. This build step will not start until all the build steps in `wait_for` have completed successfully. If `wait_for` is empty, this build step will start when all previous build steps in the `Build.Steps` list have completed successfully.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001482 &quot;A String&quot;,
1483 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001484 &quot;secretEnv&quot;: [ # A list of environment variables which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001485 &quot;A String&quot;,
1486 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001487 &quot;timing&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for executing this build step.
1488 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1489 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001490 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001491 &quot;status&quot;: &quot;A String&quot;, # Output only. Status of the build step. At this time, build step status is only updated on build completion; step status is not updated in real-time as the build progresses.
1492 &quot;dir&quot;: &quot;A String&quot;, # Working directory to use when running this step&#x27;s container. If this value is a relative path, it is relative to the build&#x27;s working directory. If this value is absolute, it may be outside the build&#x27;s working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step&#x27;s execution.
1493 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the container image that will run this particular build step. If the image is available in the host&#x27;s Docker daemon&#x27;s cache, it will be run directly. If not, the host will attempt to pull the image first, using the builder service account&#x27;s credentials if necessary. The Docker daemon&#x27;s cache will already have the latest versions of all of the officially supported build steps ([https://github.com/GoogleCloudPlatform/cloud-builders](https://github.com/GoogleCloudPlatform/cloud-builders)). The Docker daemon will also have cached many of the layers for some popular images, like &quot;ubuntu&quot;, &quot;debian&quot;, but they will be refreshed at the time you attempt to use them. If you built an image in a previous build step, it will be stored in the host&#x27;s Docker daemon&#x27;s cache and is available to use as the name for a later build step.
1494 &quot;pullTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pulling this build step&#x27;s builder image only.
1495 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1496 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1497 },
1498 &quot;env&quot;: [ # A list of environment variable definitions to be used when running a step. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1499 &quot;A String&quot;,
1500 ],
1501 &quot;timeout&quot;: &quot;A String&quot;, # Time limit for executing this build step. If not defined, the step has no time limit and will be allowed to continue to run until either it completes or the build itself times out.
1502 &quot;entrypoint&quot;: &quot;A String&quot;, # Entrypoint to be used instead of the build step image&#x27;s default entrypoint. If unset, the image&#x27;s default entrypoint is used.
1503 &quot;args&quot;: [ # A list of arguments that will be presented to the step when it is started. If the image used to run the step&#x27;s container has an entrypoint, the `args` are used as arguments to that entrypoint. If the image does not define an entrypoint, the first element in args is used as the entrypoint, and the remainder will be used as arguments.
1504 &quot;A String&quot;,
1505 ],
1506 &quot;id&quot;: &quot;A String&quot;, # Unique identifier for this build step, used in `wait_for` to reference this build step as a dependency.
1507 &quot;volumes&quot;: [ # List of volumes to mount into the build step. Each volume is created as an empty volume prior to execution of the build step. Upon completion of the build, volumes and their contents are discarded. Using a named volume in only one step is not valid as it is indicative of a build request with an incorrect configuration.
1508 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1509 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1510 &quot;name&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001511 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001512 ],
1513 },
1514 ],
1515 &quot;options&quot;: { # Optional arguments to enable specific features of builds. # Special options for this build.
1516 &quot;logStreamingOption&quot;: &quot;A String&quot;, # Option to define build log streaming behavior to Google Cloud Storage.
1517 &quot;substitutionOption&quot;: &quot;A String&quot;, # Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file.
1518 &quot;dynamicSubstitutions&quot;: True or False, # Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.
1519 &quot;requestedVerifyOption&quot;: &quot;A String&quot;, # Requested verifiability options.
1520 &quot;logging&quot;: &quot;A String&quot;, # Option to specify the logging mode, which determines if and where build logs are stored.
1521 &quot;env&quot;: [ # A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form &quot;KEY=VALUE&quot; for the environment variable &quot;KEY&quot; being given the value &quot;VALUE&quot;.
1522 &quot;A String&quot;,
1523 ],
1524 &quot;sourceProvenanceHash&quot;: [ # Requested hash for SourceProvenance.
1525 &quot;A String&quot;,
1526 ],
1527 &quot;secretEnv&quot;: [ # A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build&#x27;s `Secret`. These variables will be available to all build steps in this build.
1528 &quot;A String&quot;,
1529 ],
1530 &quot;machineType&quot;: &quot;A String&quot;, # Compute Engine machine type on which to run the build.
1531 &quot;volumes&quot;: [ # Global list of volumes to mount for ALL build steps Each volume is created as an empty volume prior to starting the build process. Upon completion of the build, volumes and their contents are discarded. Global volume names and paths cannot conflict with the volumes defined a build step. Using a global volume in a build with only one step is not valid as it is indicative of a build request with an incorrect configuration.
1532 { # Volume describes a Docker container volume which is mounted into build steps in order to persist files across build step execution.
1533 &quot;path&quot;: &quot;A String&quot;, # Path at which to mount the volume. Paths must be absolute and cannot conflict with other volume paths on the same build step or with certain reserved volume paths.
1534 &quot;name&quot;: &quot;A String&quot;, # 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.
1535 },
1536 ],
1537 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Requested disk size for the VM that runs the build. Note that this is *NOT* &quot;disk free&quot;; some of the space will be used by the operating system and build utilities. Also note that this is the minimum disk size that will be allocated for the build -- the build may run with a larger disk than requested. At present, the maximum disk size is 1000GB; builds that request more than the maximum are rejected with an error.
1538 &quot;workerPool&quot;: &quot;A String&quot;, # Option to specify a `WorkerPool` for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is experimental.
1539 },
1540 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). Logs file names will be of the format `${logs_bucket}/log-${build_id}.txt`.
1541 &quot;logUrl&quot;: &quot;A String&quot;, # Output only. URL to logs for this build in Google Cloud Console.
1542 &quot;tags&quot;: [ # Tags for annotation of a `Build`. These are not docker tags.
1543 &quot;A String&quot;,
1544 ],
1545 &quot;buildTriggerId&quot;: &quot;A String&quot;, # Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
1546 &quot;sourceProvenance&quot;: { # Provenance of the source. Ways to find the original source, or verify that some source was used for this build. # Output only. A permanent fixed identifier for source.
1547 &quot;resolvedStorageSource&quot;: { # Location of the source in an archive file in Google Cloud Storage. # A copy of the build&#x27;s `source.storage_source`, if exists, with any generations resolved.
1548 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.
1549 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing the source. This object must be a gzipped archive file (`.tar.gz`) containing source to build.
1550 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing the source (see [Bucket Name Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1551 },
1552 &quot;fileHashes&quot;: { # Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
1553 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.
1554 &quot;fileHash&quot;: [ # Collection of file hashes.
1555 { # Container message for hash values.
1556 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1557 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1558 },
1559 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001560 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001561 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001562 &quot;resolvedRepoSource&quot;: { # Location of the source in a Google Cloud Source Repository. # A copy of the build&#x27;s `source.repo_source`, if exists, with any revisions resolved.
1563 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1564 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
1565 &quot;a_key&quot;: &quot;A String&quot;,
1566 },
1567 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1568 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1569 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1570 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1571 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1572 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
1573 },
1574 },
1575 &quot;name&quot;: &quot;A String&quot;, # Output only. The &#x27;Build&#x27; name with format: `projects/{project}/locations/{location}/builds/{build}`, where {build} is a unique identifier generated by the service.
1576 &quot;results&quot;: { # Artifacts created by the build pipeline. # Output only. Results of the build.
1577 &quot;images&quot;: [ # Container images that were built as a part of the build.
1578 { # An image built by the pipeline.
1579 &quot;name&quot;: &quot;A String&quot;, # Name used to push the container image to Google Container Registry, as presented to `docker push`.
1580 &quot;pushTiming&quot;: { # Start and end times for a build execution phase. # Output only. Stores timing information for pushing the specified image.
1581 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1582 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1583 },
1584 &quot;digest&quot;: &quot;A String&quot;, # Docker Registry 2.0 digest.
1585 },
1586 ],
1587 &quot;artifactTiming&quot;: { # Start and end times for a build execution phase. # Time to push all non-container artifacts.
1588 &quot;endTime&quot;: &quot;A String&quot;, # End of time span.
1589 &quot;startTime&quot;: &quot;A String&quot;, # Start of time span.
1590 },
1591 &quot;buildStepOutputs&quot;: [ # List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 4KB of data is stored.
1592 &quot;A String&quot;,
1593 ],
1594 &quot;artifactManifest&quot;: &quot;A String&quot;, # Path to the artifact manifest. Only populated when artifacts are uploaded.
1595 &quot;buildStepImages&quot;: [ # List of build step digests, in the order corresponding to build step indices.
1596 &quot;A String&quot;,
1597 ],
1598 &quot;numArtifacts&quot;: &quot;A String&quot;, # Number of artifacts uploaded. Only populated when artifacts are uploaded.
1599 },
1600 &quot;id&quot;: &quot;A String&quot;, # Output only. Unique identifier of the build.
1601 &quot;projectId&quot;: &quot;A String&quot;, # Output only. ID of the project.
1602 },
1603 &quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to a file whose contents is used for the template.
1604 &quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
1605 &quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
1606 &quot;push&quot;: { # Push contains filter properties for matching GitHub git pushes. # filter to match changes in refs like branches, tags.
1607 &quot;invertRegex&quot;: True or False, # When true, only trigger a build if the revision regex does NOT match the git_ref regex.
1608 &quot;branch&quot;: &quot;A String&quot;, # Regexes matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1609 &quot;tag&quot;: &quot;A String&quot;, # Regexes matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1610 },
1611 &quot;owner&quot;: &quot;A String&quot;, # Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is &quot;googlecloudplatform&quot;.
1612 &quot;pullRequest&quot;: { # PullRequestFilter contains filter properties for matching GitHub Pull Requests. # filter to match changes in pull requests.
1613 &quot;branch&quot;: &quot;A String&quot;, # Regex of branches to match. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1614 &quot;commentControl&quot;: &quot;A String&quot;, # Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`.
1615 &quot;invertRegex&quot;: True or False, # If true, branches that do NOT match the git_ref will trigger a build.
1616 },
1617 &quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
1618 },
1619 &quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
1620 &quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
1621 &quot;name&quot;: &quot;A String&quot;, # 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.
1622 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623</div>
1624
1625<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001626 <code class="details" id="run">run(projectId, triggerId, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001627 <pre>Runs a `BuildTrigger` at a particular source revision.
1628
1629Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001630 projectId: string, Required. ID of the project. (required)
1631 triggerId: string, Required. ID of the trigger. (required)
1632 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001633 The object takes the form of:
1634
1635{ # Location of the source in a Google Cloud Source Repository.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001636 &quot;tagName&quot;: &quot;A String&quot;, # Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001637 &quot;substitutions&quot;: { # Substitutions to use in a triggered build. Should only be used with RunBuildTrigger
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001638 &quot;a_key&quot;: &quot;A String&quot;,
1639 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001640 &quot;branchName&quot;: &quot;A String&quot;, # Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
1641 &quot;repoName&quot;: &quot;A String&quot;, # Required. Name of the Cloud Source Repository.
1642 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.
1643 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1644 &quot;dir&quot;: &quot;A String&quot;, # Directory, relative to the source root, in which to run the build. This must be a relative path. If a step&#x27;s `dir` is specified and is an absolute path, this value is ignored for that step&#x27;s execution.
1645 &quot;invertRegex&quot;: True or False, # Only trigger a build if the revision regex does NOT match the revision regex.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001646}
1647
1648 x__xgafv: string, V1 error format.
1649 Allowed values
1650 1 - v1 error format
1651 2 - v2 error format
1652
1653Returns:
1654 An object of the form:
1655
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001656 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001657 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1658 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1659 },
1660 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001661 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1662 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1663 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001664 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001665 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001666 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001667 {
1668 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1669 },
1670 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001671 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1672 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001673 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001674 }</pre>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001675</div>
1676
1677</body></html>