mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-26 19:58:50 +01:00
932 lines
35 KiB
HTML
932 lines
35 KiB
HTML
<!DOCTYPE html>
|
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Triggers Patch - Cloud Build v2.0.4+20210329</title>
|
|
|
|
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
|
|
|
|
<link rel="stylesheet" href="../css/theme.css" type="text/css" />
|
|
<link rel="stylesheet" href="../css/theme_extra.css" type="text/css" />
|
|
<link rel="stylesheet" href="../css/highlight.css">
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
|
|
<script type="text/javascript" src="../js/highlight.pack.js"></script>
|
|
<script src="../js/theme.js"></script>
|
|
|
|
<style>
|
|
body {font-size: 90%;}
|
|
pre, code {font-size: 100%;}
|
|
h3, h4, h5, h6 {color: #2980b9; font-weight: 300}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
|
|
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
|
|
<div class="wy-side-nav-search">
|
|
<a href=".." class="icon icon-home"> Cloud Build v2.0.4+20210329</a>
|
|
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
<ul class="current">
|
|
|
|
|
|
<span>Operations</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../operations_cancel">Cancel</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../operations_get">Get</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Projects</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_builds-cancel">Builds Cancel</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_builds-create">Builds Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_builds-get">Builds Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_builds-list">Builds List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_builds-retry">Builds Retry</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-builds-cancel">Locations Builds Cancel</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-builds-create">Locations Builds Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-builds-get">Locations Builds Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-builds-list">Locations Builds List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-builds-retry">Locations Builds Retry</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-operations-cancel">Locations Operations Cancel</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-operations-get">Locations Operations Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_triggers-create">Triggers Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_triggers-delete">Triggers Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_triggers-get">Triggers Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_triggers-list">Triggers List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 current">
|
|
<a class="current" href=".">Triggers Patch</a>
|
|
|
|
<ul>
|
|
|
|
<li class="toctree-l2"><a href="#scopes">Scopes</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#required-scalar-arguments">Required Scalar Arguments</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#required-request-value">Required Request Value</a></li>
|
|
|
|
<li><a class="toctree-l3" href="#about-cursors">About Cursors</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#optional-output-flags">Optional Output Flags</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#optional-general-properties">Optional General Properties</a></li>
|
|
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_triggers-run">Triggers Run</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_triggers-webhook">Triggers Webhook</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
|
|
|
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
|
<i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
|
|
<a href=".."></a>
|
|
</nav>
|
|
|
|
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content">
|
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="..">Docs</a> »</li>
|
|
<li>Triggers Patch</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
|
|
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/cloudbuild1-cli" class="icon icon-github"> Edit on GitHub</a>
|
|
|
|
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main">
|
|
<div class="section">
|
|
<p>Updates a <code>BuildTrigger</code> by its project ID and trigger ID. This API is experimental.</p>
|
|
<h1 id="scopes">Scopes</h1>
|
|
<p>You will need authorization for the <em>https://www.googleapis.com/auth/cloud-platform</em> scope to make a valid call.</p>
|
|
<p>If unset, the scope for this method defaults to <em>https://www.googleapis.com/auth/cloud-platform</em>.
|
|
You can set the scope for this method like this: <code>cloudbuild1 --scope <scope> projects triggers-patch ...</code></p>
|
|
<h1 id="required-scalar-arguments">Required Scalar Arguments</h1>
|
|
<ul>
|
|
<li><strong><project-id></strong> <em>(string)</em><ul>
|
|
<li>Required. ID of the project that owns the trigger.</li>
|
|
</ul>
|
|
</li>
|
|
<li><strong><trigger-id></strong> <em>(string)</em><ul>
|
|
<li>Required. ID of the <code>BuildTrigger</code> to update.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="required-request-value">Required Request Value</h1>
|
|
<p>The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure.
|
|
In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.</p>
|
|
<p>For example, a structure like this:</p>
|
|
<pre><code>BuildTrigger:
|
|
build:
|
|
artifacts:
|
|
images: [string]
|
|
objects:
|
|
location: string
|
|
paths: [string]
|
|
timing:
|
|
end-time: string
|
|
start-time: string
|
|
build-trigger-id: string
|
|
create-time: string
|
|
finish-time: string
|
|
id: string
|
|
images: [string]
|
|
log-url: string
|
|
logs-bucket: string
|
|
name: string
|
|
options:
|
|
disk-size-gb: string
|
|
dynamic-substitutions: boolean
|
|
env: [string]
|
|
log-streaming-option: string
|
|
logging: string
|
|
machine-type: string
|
|
requested-verify-option: string
|
|
secret-env: [string]
|
|
source-provenance-hash: [string]
|
|
substitution-option: string
|
|
worker-pool: string
|
|
project-id: string
|
|
queue-ttl: string
|
|
results:
|
|
artifact-manifest: string
|
|
artifact-timing:
|
|
end-time: string
|
|
start-time: string
|
|
build-step-images: [string]
|
|
build-step-outputs: [string]
|
|
num-artifacts: string
|
|
service-account: string
|
|
source:
|
|
repo-source:
|
|
branch-name: string
|
|
commit-sha: string
|
|
dir: string
|
|
invert-regex: boolean
|
|
project-id: string
|
|
repo-name: string
|
|
substitutions: { string: string }
|
|
tag-name: string
|
|
storage-source:
|
|
bucket: string
|
|
generation: string
|
|
object: string
|
|
storage-source-manifest:
|
|
bucket: string
|
|
generation: string
|
|
object: string
|
|
source-provenance:
|
|
resolved-repo-source:
|
|
branch-name: string
|
|
commit-sha: string
|
|
dir: string
|
|
invert-regex: boolean
|
|
project-id: string
|
|
repo-name: string
|
|
substitutions: { string: string }
|
|
tag-name: string
|
|
resolved-storage-source:
|
|
bucket: string
|
|
generation: string
|
|
object: string
|
|
resolved-storage-source-manifest:
|
|
bucket: string
|
|
generation: string
|
|
object: string
|
|
start-time: string
|
|
status: string
|
|
status-detail: string
|
|
substitutions: { string: string }
|
|
tags: [string]
|
|
timeout: string
|
|
create-time: string
|
|
description: string
|
|
disabled: boolean
|
|
filename: string
|
|
github:
|
|
installation-id: string
|
|
name: string
|
|
owner: string
|
|
pull-request:
|
|
branch: string
|
|
comment-control: string
|
|
invert-regex: boolean
|
|
push:
|
|
branch: string
|
|
invert-regex: boolean
|
|
tag: string
|
|
id: string
|
|
ignored-files: [string]
|
|
included-files: [string]
|
|
name: string
|
|
substitutions: { string: string }
|
|
tags: [string]
|
|
trigger-template:
|
|
branch-name: string
|
|
commit-sha: string
|
|
dir: string
|
|
invert-regex: boolean
|
|
project-id: string
|
|
repo-name: string
|
|
substitutions: { string: string }
|
|
tag-name: string
|
|
|
|
</code></pre>
|
|
|
|
<p>can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.</p>
|
|
<ul>
|
|
<li><code>-r .build.artifacts images=sit</code><ul>
|
|
<li>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's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>objects location=vero</code><ul>
|
|
<li>Cloud Storage bucket and optional object path, in the form "gs://bucket/path/to/somewhere/". (see <a href="https://cloud.google.com/storage/docs/bucket-naming#requirements">Bucket Name Requirements</a>). Files in the workspace matching any path pattern will be uploaded to Cloud Storage with this location as a prefix.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>paths=rebum.</code><ul>
|
|
<li>Path globs used to match files in the build's workspace.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>timing end-time=dolores</code><ul>
|
|
<li>End of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>start-time=consetetur</code></p>
|
|
<ul>
|
|
<li>Start of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.... build-trigger-id=dolores</code></p>
|
|
<ul>
|
|
<li>Output only. The ID of the <code>BuildTrigger</code> that triggered this build, if it was triggered automatically.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>create-time=sed</code><ul>
|
|
<li>Output only. Time at which the request to create the build was received.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>finish-time=invidunt</code><ul>
|
|
<li>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's execution.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>id=clita</code><ul>
|
|
<li>Output only. Unique identifier of the build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>images=dolor</code><ul>
|
|
<li>A list of images to be pushed upon the successful completion of all build steps. The images are pushed using the builder service account's credentials. The digests of the pushed images will be stored in the <code>Build</code> resource's results field. If any of the images fail to be pushed, the build status is marked <code>FAILURE</code>.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>log-url=aliquyam</code><ul>
|
|
<li>Output only. URL to logs for this build in Google Cloud Console.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>logs-bucket=magna</code><ul>
|
|
<li>Google Cloud Storage bucket where logs should be written (see <a href="https://cloud.google.com/storage/docs/bucket-naming#requirements">Bucket Name Requirements</a>). Logs file names will be of the format <code>${logs_bucket}/log-${build_id}.txt</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>name=diam</code><ul>
|
|
<li>Output only. The 'Build' name with format: <code>projects/{project}/locations/{location}/builds/{build}</code>, where {build} is a unique identifier generated by the service.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>options disk-size-gb=nonumy</code><ul>
|
|
<li>Requested disk size for the VM that runs the build. Note that this is <em>NOT</em> "disk free"; 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.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>dynamic-substitutions=true</code><ul>
|
|
<li>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.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>env=sed</code><ul>
|
|
<li>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 "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE".</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>log-streaming-option=est</code><ul>
|
|
<li>Option to define build log streaming behavior to Google Cloud Storage.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>logging=takimata</code><ul>
|
|
<li>Option to specify the logging mode, which determines if and where build logs are stored.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>machine-type=dolor</code><ul>
|
|
<li>Compute Engine machine type on which to run the build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>requested-verify-option=diam</code><ul>
|
|
<li>Requested verifiability options.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>secret-env=at</code><ul>
|
|
<li>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's <code>Secret</code>. These variables will be available to all build steps in this build.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>source-provenance-hash=erat</code><ul>
|
|
<li>Requested hash for SourceProvenance.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitution-option=justo</code><ul>
|
|
<li>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.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>worker-pool=ipsum</code></p>
|
|
<ul>
|
|
<li>Option to specify a <code>WorkerPool</code> for the build. Format: projects/{project}/locations/{location}/workerPools/{workerPool} This field is in beta and is available only to restricted users.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. project-id=accusam</code></p>
|
|
<ul>
|
|
<li>Output only. ID of the project.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>queue-ttl=dolores</code><ul>
|
|
<li>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 <code>EXPIRED</code>. The TTL starts ticking from create_time.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>results artifact-manifest=consetetur</code><ul>
|
|
<li>Path to the artifact manifest. Only populated when artifacts are uploaded.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>artifact-timing end-time=no</code><ul>
|
|
<li>End of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>start-time=justo</code></p>
|
|
<ul>
|
|
<li>Start of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. build-step-images=sadipscing</code></p>
|
|
<ul>
|
|
<li>List of build step digests, in the order corresponding to build step indices.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>build-step-outputs=diam</code><ul>
|
|
<li>List of build step outputs, produced by builder images, in the order corresponding to build step indices. <a href="https://cloud.google.com/cloud-build/docs/cloud-builders">Cloud Builders</a> can produce this output by writing to <code>$BUILDER_OUTPUT/output</code>. Only the first 4KB of data is stored.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>num-artifacts=sea</code></p>
|
|
<ul>
|
|
<li>Number of artifacts uploaded. Only populated when artifacts are uploaded.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. service-account=ipsum</code></p>
|
|
<ul>
|
|
<li>IAM service account whose credentials will be used at build runtime. Must be of the format <code>projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}</code>. ACCOUNT can be email address or uniqueId of the service account. This field is in beta.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>source.repo-source branch-name=stet</code><ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>commit-sha=gubergren</code><ul>
|
|
<li>Explicit commit SHA to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>dir=ipsum</code><ul>
|
|
<li>Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's <code>dir</code> is specified and is an absolute path, this value is ignored for that step's execution.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>invert-regex=true</code><ul>
|
|
<li>Only trigger a build if the revision regex does NOT match the revision regex.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>project-id=sit</code><ul>
|
|
<li>ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>repo-name=kasd</code><ul>
|
|
<li>Name of the Cloud Source Repository.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitutions=key=amet</code><ul>
|
|
<li>Substitutions to use in a triggered build. Should only be used with RunBuildTrigger</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>tag-name=lorem</code></p>
|
|
<ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..storage-source bucket=justo</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage bucket containing the source (see <a href="https://cloud.google.com/storage/docs/bucket-naming#requirements">Bucket Name Requirements</a>).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>generation=invidunt</code><ul>
|
|
<li>Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>object=sed</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage object containing the source. This object must be a gzipped archive file (<code>.tar.gz</code>) containing source to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..storage-source-manifest bucket=nonumy</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage bucket containing the source manifest (see <a href="https://cloud.google.com/storage/docs/bucket-naming#requirements">Bucket Name Requirements</a>).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>generation=sea</code><ul>
|
|
<li>Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>object=ipsum</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage object containing the source manifest. This object must be a JSON file.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>...source-provenance.resolved-repo-source branch-name=kasd</code></p>
|
|
<ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>commit-sha=justo</code><ul>
|
|
<li>Explicit commit SHA to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>dir=ea</code><ul>
|
|
<li>Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's <code>dir</code> is specified and is an absolute path, this value is ignored for that step's execution.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>invert-regex=false</code><ul>
|
|
<li>Only trigger a build if the revision regex does NOT match the revision regex.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>project-id=erat</code><ul>
|
|
<li>ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>repo-name=clita</code><ul>
|
|
<li>Name of the Cloud Source Repository.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitutions=key=vero</code><ul>
|
|
<li>Substitutions to use in a triggered build. Should only be used with RunBuildTrigger</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>tag-name=invidunt</code></p>
|
|
<ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..resolved-storage-source bucket=nonumy</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage bucket containing the source (see <a href="https://cloud.google.com/storage/docs/bucket-naming#requirements">Bucket Name Requirements</a>).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>generation=erat</code><ul>
|
|
<li>Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>object=erat</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage object containing the source. This object must be a gzipped archive file (<code>.tar.gz</code>) containing source to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..resolved-storage-source-manifest bucket=dolores</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage bucket containing the source manifest (see <a href="https://cloud.google.com/storage/docs/bucket-naming#requirements">Bucket Name Requirements</a>).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>generation=ipsum</code><ul>
|
|
<li>Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>object=voluptua.</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage object containing the source manifest. This object must be a JSON file.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>... start-time=eos</code></p>
|
|
<ul>
|
|
<li>Output only. Time at which execution of the build was started.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>status=duo</code><ul>
|
|
<li>Output only. Status of the build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>status-detail=elitr</code><ul>
|
|
<li>Output only. Customer-readable message about the current status.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitutions=key=consetetur</code><ul>
|
|
<li>Substitutions data for <code>Build</code> resource.</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><code>tags=et</code><ul>
|
|
<li>Tags for annotation of a <code>Build</code>. These are not docker tags.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>timeout=clita</code></p>
|
|
<ul>
|
|
<li>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 <code>TIMEOUT</code>. <code>timeout</code> starts ticking from <code>startTime</code>. Default time is ten minutes.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. create-time=sit</code></p>
|
|
<ul>
|
|
<li>Output only. Time when the trigger was created.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>description=takimata</code><ul>
|
|
<li>Human-readable description of this trigger.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>disabled=true</code><ul>
|
|
<li>If true, the trigger will never automatically execute a build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>filename=nonumy</code><ul>
|
|
<li>Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>github installation-id=lorem</code><ul>
|
|
<li>The installationID that emits the GitHub event.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>name=at</code><ul>
|
|
<li>Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders".</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>owner=diam</code><ul>
|
|
<li>Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform".</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>pull-request branch=diam</code><ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>comment-control=sed</code><ul>
|
|
<li>Configure builds to run whether a repository owner or collaborator need to comment <code>/gcbrun</code>.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>invert-regex=false</code></p>
|
|
<ul>
|
|
<li>If true, branches that do NOT match the git_ref will trigger a build.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..push branch=ipsum</code></p>
|
|
<ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>invert-regex=true</code><ul>
|
|
<li>When true, only trigger a build if the revision regex does NOT match the git_ref regex.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>tag=at</code></p>
|
|
<ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>... id=sit</code></p>
|
|
<ul>
|
|
<li>Output only. Unique identifier of the trigger.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>ignored-files=sit</code><ul>
|
|
<li>ignored_files and included_files are file glob matches using https://golang.org/pkg/path/filepath/#Match extended with support for "**". If ignored_files and changed files are both empty, then they are not used to determine whether or not to trigger a build. If ignored_files is not empty, then we ignore any files that match any of the ignored_file globs. If the change has no files that are outside of the ignored_files globs, then we do not trigger a build.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>included-files=lorem</code><ul>
|
|
<li>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.</li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>name=stet</code><ul>
|
|
<li>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.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitutions=key=duo</code><ul>
|
|
<li>Substitutions for Build resource. The keys must match the following regular expression: <code>^_[A-Z0-9_]+$</code>.</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><code>tags=elitr</code><ul>
|
|
<li>Tags for annotation of a <code>BuildTrigger</code></li>
|
|
<li>Each invocation of this argument appends the given value to the array.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>trigger-template branch-name=aliquyam</code><ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>commit-sha=erat</code><ul>
|
|
<li>Explicit commit SHA to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>dir=ut</code><ul>
|
|
<li>Directory, relative to the source root, in which to run the build. This must be a relative path. If a step's <code>dir</code> is specified and is an absolute path, this value is ignored for that step's execution.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>invert-regex=true</code><ul>
|
|
<li>Only trigger a build if the revision regex does NOT match the revision regex.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>project-id=rebum.</code><ul>
|
|
<li>ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>repo-name=et</code><ul>
|
|
<li>Name of the Cloud Source Repository.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitutions=key=sed</code><ul>
|
|
<li>Substitutions to use in a triggered build. Should only be used with RunBuildTrigger</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li><code>tag-name=stet</code><ul>
|
|
<li>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</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h3 id="about-cursors">About Cursors</h3>
|
|
<p>The cursor position is key to comfortably set complex nested structures. The following rules apply:</p>
|
|
<ul>
|
|
<li>The cursor position is always set relative to the current one, unless the field name starts with the <code>.</code> character. Fields can be nested such as in <code>-r f.s.o</code> .</li>
|
|
<li>The cursor position is set relative to the top-level structure if it starts with <code>.</code>, e.g. <code>-r .s.s</code></li>
|
|
<li>You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify <code>-r struct.sub_struct=bar</code>.</li>
|
|
<li>You can move the cursor one level up by using <code>..</code>. Each additional <code>.</code> moves it up one additional level. E.g. <code>...</code> would go three levels up.</li>
|
|
</ul>
|
|
<h1 id="optional-output-flags">Optional Output Flags</h1>
|
|
<p>The method's return value a JSON encoded structure, which will be written to standard output by default.</p>
|
|
<ul>
|
|
<li><strong>-o out</strong><ul>
|
|
<li><em>out</em> specifies the <em>destination</em> to which to write the server's result to.
|
|
It will be a JSON-encoded structure.
|
|
The <em>destination</em> may be <code>-</code> to indicate standard output, or a filepath that is to contain the received bytes.
|
|
If unset, it defaults to standard output.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="optional-general-properties">Optional General Properties</h1>
|
|
<p>The following properties can configure any call, and are not specific to this method.</p>
|
|
<ul>
|
|
<li>
|
|
<p><strong>-p $-xgafv=string</strong></p>
|
|
<ul>
|
|
<li>V1 error format.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p access-token=string</strong></p>
|
|
<ul>
|
|
<li>OAuth access token.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p alt=string</strong></p>
|
|
<ul>
|
|
<li>Data format for response.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p callback=string</strong></p>
|
|
<ul>
|
|
<li>JSONP</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p fields=string</strong></p>
|
|
<ul>
|
|
<li>Selector specifying which fields to include in a partial response.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p key=string</strong></p>
|
|
<ul>
|
|
<li>API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p oauth-token=string</strong></p>
|
|
<ul>
|
|
<li>OAuth 2.0 token for the current user.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p pretty-print=boolean</strong></p>
|
|
<ul>
|
|
<li>Returns response with indentations and line breaks.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p quota-user=string</strong></p>
|
|
<ul>
|
|
<li>Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p upload-type=string</strong></p>
|
|
<ul>
|
|
<li>Legacy upload protocol for media (e.g. "media", "multipart").</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p upload-protocol=string</strong></p>
|
|
<ul>
|
|
<li>Upload protocol for media (e.g. "raw", "multipart").</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
|
|
|
<a href="../projects_triggers-run" class="btn btn-neutral float-right" title="Triggers Run"/>Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
|
|
|
|
<a href="../projects_triggers-list" class="btn btn-neutral" title="Triggers List"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
|
|
|
</div>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
<!-- Copyright etc -->
|
|
</p>
|
|
</div>
|
|
|
|
Built with <a href="http://www.mkdocs.org">MkDocs</a>, using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="rst-versions" role="note" style="cursor: pointer">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<a class="icon icon-github" style="float: left; color: #fcfcfc"> GitHub</a>
|
|
|
|
<span><a href="../projects_triggers-list" style="color: #fcfcfc;">« Previous</a></span>
|
|
<span style="margin-left: 15px"><a href="../projects_triggers-run" style="color: #fcfcfc">Next »</a></span>
|
|
</span>
|
|
</div>
|
|
</body>
|
|
</html> |