mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-25 12:44:07 +01:00
1044 lines
39 KiB
HTML
1044 lines
39 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>Builds Create - Cloud Build v3.0.0+20220218</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 v3.0.0+20220218</a>
|
|
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
<ul class="current">
|
|
|
|
|
|
<span>Locations</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../locations_regional-webhook">Regional Webhook</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<span>Methods</span>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../methods_webhook">Webhook</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<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-approve">Builds Approve</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_builds-cancel">Builds Cancel</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 current">
|
|
<a class="current" href=".">Builds Create</a>
|
|
|
|
<ul>
|
|
|
|
<li class="toctree-l2"><a href="#scopes">Scopes</a></li>
|
|
|
|
|
|
<li class="toctree-l2"><a href="#required-scalar-argument">Required Scalar Argument</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-method-properties">Optional Method Properties</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_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_github-enterprise-configs-create">Github Enterprise Configs Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_github-enterprise-configs-delete">Github Enterprise Configs Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_github-enterprise-configs-get">Github Enterprise Configs Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_github-enterprise-configs-list">Github Enterprise Configs List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_github-enterprise-configs-patch">Github Enterprise Configs Patch</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-add-bitbucket-server-connected-repository">Locations Bitbucket Server Configs Add Bitbucket Server Connected Repository</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-connected-repositories-batch-create">Locations Bitbucket Server Configs Connected Repositories Batch Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-create">Locations Bitbucket Server Configs Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-delete">Locations Bitbucket Server Configs Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-get">Locations Bitbucket Server Configs Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-list">Locations Bitbucket Server Configs List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-patch">Locations Bitbucket Server Configs Patch</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-remove-bitbucket-server-connected-repository">Locations Bitbucket Server Configs Remove Bitbucket Server Connected Repository</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-bitbucket-server-configs-repos-list">Locations Bitbucket Server Configs Repos List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-builds-approve">Locations Builds Approve</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-github-enterprise-configs-create">Locations Github Enterprise Configs Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-github-enterprise-configs-delete">Locations Github Enterprise Configs Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-github-enterprise-configs-get">Locations Github Enterprise Configs Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-github-enterprise-configs-list">Locations Github Enterprise Configs List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-github-enterprise-configs-patch">Locations Github Enterprise Configs Patch</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_locations-triggers-create">Locations Triggers Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-triggers-delete">Locations Triggers Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-triggers-get">Locations Triggers Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-triggers-list">Locations Triggers List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-triggers-patch">Locations Triggers Patch</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-triggers-run">Locations Triggers Run</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-triggers-webhook">Locations Triggers Webhook</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-worker-pools-create">Locations Worker Pools Create</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-worker-pools-delete">Locations Worker Pools Delete</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-worker-pools-get">Locations Worker Pools Get</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-worker-pools-list">Locations Worker Pools List</a>
|
|
|
|
</li>
|
|
|
|
<li class="toctree-l1 ">
|
|
<a class="" href="../projects_locations-worker-pools-patch">Locations Worker Pools Patch</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 ">
|
|
<a class="" href="../projects_triggers-patch">Triggers Patch</a>
|
|
|
|
</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>Builds Create</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>Starts a build with the specified configuration. This method returns a long-running <code>Operation</code>, which includes the build ID. Pass the build ID to <code>GetBuild</code> to determine the build status (such as <code>SUCCESS</code> or <code>FAILURE</code>).</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 builds-create ...</code></p>
|
|
<h1 id="required-scalar-argument">Required Scalar Argument</h1>
|
|
<ul>
|
|
<li><strong><project-id></strong> <em>(string)</em><ul>
|
|
<li>Required. ID of the project.</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>Build:
|
|
approval:
|
|
config:
|
|
approval-required: boolean
|
|
result:
|
|
approval-time: string
|
|
approver-account: string
|
|
comment: string
|
|
decision: string
|
|
url: string
|
|
state: string
|
|
artifacts:
|
|
images: [string]
|
|
objects:
|
|
location: string
|
|
paths: [string]
|
|
timing:
|
|
end-time: string
|
|
start-time: string
|
|
build-trigger-id: string
|
|
create-time: string
|
|
failure-info:
|
|
detail: string
|
|
type: 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
|
|
pool:
|
|
name: 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
|
|
|
|
</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>
|
|
<p><code>-r .approval.config approval-required=true</code></p>
|
|
<ul>
|
|
<li>Whether or not approval is needed. If this is set on a build, it will become pending when created, and will need to be explicitly approved to start.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..result approval-time=gubergren</code></p>
|
|
<ul>
|
|
<li>Output only. The time when the approval decision was made.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>approver-account=lorem</code><ul>
|
|
<li>Output only. Email of the user that called the ApproveBuild API to approve or reject a build at the time that the API was called.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>comment=gubergren</code><ul>
|
|
<li>Optional. An optional comment for this manual approval result.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>decision=eos</code><ul>
|
|
<li>Required. The decision of this manual approval.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>url=dolor</code></p>
|
|
<ul>
|
|
<li>Optional. An optional URL tied to this manual approval result. This field is essentially the same as comment, except that it will be rendered by the UI differently. An example use case is a link to an external job that approved this Build.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. state=ea</code></p>
|
|
<ul>
|
|
<li>Output only. The state of this build's approval.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..artifacts images=ipsum</code></p>
|
|
<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=invidunt</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=amet</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=duo</code><ul>
|
|
<li>End of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>start-time=ipsum</code></p>
|
|
<ul>
|
|
<li>Start of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.... build-trigger-id=sed</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=ut</code><ul>
|
|
<li>Output only. Time at which the request to create the build was received.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>failure-info detail=gubergren</code><ul>
|
|
<li>Explains the failure issue in more detail using hard-coded text.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>type=rebum.</code></p>
|
|
<ul>
|
|
<li>The name of the failure.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. finish-time=est</code></p>
|
|
<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=ipsum</code><ul>
|
|
<li>Output only. Unique identifier of the build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>images=ipsum</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=est</code><ul>
|
|
<li>Output only. URL to logs for this build in Google Cloud Console.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>logs-bucket=gubergren</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=ea</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=dolor</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=eos</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=labore</code><ul>
|
|
<li>Option to define build log streaming behavior to Google Cloud Storage.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>logging=sed</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=duo</code><ul>
|
|
<li>Compute Engine machine type on which to run the build.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>pool name=sed</code></p>
|
|
<ul>
|
|
<li>The <code>WorkerPool</code> resource to execute the build on. You must have <code>cloudbuild.workerpools.use</code> on the project hosting the WorkerPool. Format projects/{project}/locations/{location}/workerPools/{workerPoolId}</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. requested-verify-option=no</code></p>
|
|
<ul>
|
|
<li>Requested verifiability options.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>secret-env=stet</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=kasd</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=et</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=sed</code></p>
|
|
<ul>
|
|
<li>This field deprecated; please use <code>pool.name</code> instead.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. project-id=et</code></p>
|
|
<ul>
|
|
<li>Output only. ID of the project.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>queue-ttl=et</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=vero</code><ul>
|
|
<li>Path to the artifact manifest. Only populated when artifacts are uploaded.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>artifact-timing end-time=erat</code><ul>
|
|
<li>End of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>start-time=sed</code></p>
|
|
<ul>
|
|
<li>Start of time span.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. build-step-images=duo</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=dolore</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=et</code></p>
|
|
<ul>
|
|
<li>Number of artifacts uploaded. Only populated when artifacts are uploaded.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. service-account=voluptua.</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. </li>
|
|
</ul>
|
|
</li>
|
|
<li><code>source.repo-source branch-name=amet.</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=consetetur</code><ul>
|
|
<li>Explicit commit SHA to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>dir=diam</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=et</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=sadipscing</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=stet</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=dolor</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=duo</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=vero</code></p>
|
|
<ul>
|
|
<li>Google Cloud Storage object containing the source. This object must be a zipped (<code>.zip</code>) or gzipped archive file (<code>.tar.gz</code>) containing source to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..storage-source-manifest bucket=vero</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=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=stet</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=vero</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=elitr</code><ul>
|
|
<li>Explicit commit SHA to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>dir=lorem</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=ipsum</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=accusam</code><ul>
|
|
<li>Name of the Cloud Source Repository.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitutions=key=takimata</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=consetetur</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=voluptua.</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=et</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 zipped (<code>.zip</code>) or gzipped archive file (<code>.tar.gz</code>) containing source to build.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..resolved-storage-source-manifest bucket=consetetur</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=amet.</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 manifest. This object must be a JSON file.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>... start-time=takimata</code></p>
|
|
<ul>
|
|
<li>Output only. Time at which execution of the build was started.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>status=dolores</code><ul>
|
|
<li>Output only. Status of the build.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>status-detail=gubergren</code><ul>
|
|
<li>Output only. Customer-readable message about the current status.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>substitutions=key=et</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=accusam</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><code>timeout=voluptua.</code><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>
|
|
</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-method-properties">Optional Method Properties</h1>
|
|
<p>You may set the following properties to further configure the call. Please note that <code>-p</code> is followed by one
|
|
or more key-value-pairs, and is called like this <code>-p k1=v1 k2=v2</code> even though the listing below repeats the
|
|
<code>-p</code> for completeness.</p>
|
|
<ul>
|
|
<li><strong>-p parent=string</strong><ul>
|
|
<li>The parent resource where this build will be created. Format: <code>projects/{project}/locations/{location}</code></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_builds-get" class="btn btn-neutral float-right" title="Builds Get"/>Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
|
|
|
|
<a href="../projects_builds-cancel" class="btn btn-neutral" title="Builds Cancel"><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_builds-cancel" style="color: #fcfcfc;">« Previous</a></span>
|
|
<span style="margin-left: 15px"><a href="../projects_builds-get" style="color: #fcfcfc">Next »</a></span>
|
|
</span>
|
|
</div>
|
|
</body>
|
|
</html> |