Struct google_cloudbuild1::Build[][src]

pub struct Build {
    pub status: Option<String>,
    pub source_provenance: Option<SourceProvenance>,
    pub tags: Option<Vec<String>>,
    pub status_detail: Option<String>,
    pub create_time: Option<String>,
    pub results: Option<Results>,
    pub start_time: Option<String>,
    pub images: Option<Vec<String>>,
    pub id: Option<String>,
    pub finish_time: Option<String>,
    pub build_trigger_id: Option<String>,
    pub secrets: Option<Vec<Secret>>,
    pub logs_bucket: Option<String>,
    pub substitutions: Option<HashMap<String, String>>,
    pub source: Option<Source>,
    pub steps: Option<Vec<BuildStep>>,
    pub timeout: Option<String>,
    pub project_id: Option<String>,
    pub options: Option<BuildOptions>,
    pub log_url: Option<String>,
}

A build resource in the Container Builder 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 what tag to apply to the built image when it is pushed to Google Container Registry.

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.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

Status of the build. @OutputOnly

A permanent fixed identifier for source. @OutputOnly

Tags for annotation of a Build. These are not docker tags.

Customer-readable message about the current status. @OutputOnly

Time at which the request to create the build was received. @OutputOnly

Results of the build. @OutputOnly

Time at which execution of the build was started. @OutputOnly

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.

Unique identifier of the build. @OutputOnly

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. @OutputOnly

The ID of the BuildTrigger that triggered this build, if it was triggered automatically. @OutputOnly

Secrets to decrypt using Cloud KMS.

Google Cloud Storage bucket where logs should be written (see Bucket Name Requirements). Logs file names will be of the format ${logs_bucket}/log-${build_id}.txt.

Substitutions data for Build resource.

Describes where to find the source files to build.

Describes the operations to be performed on the workspace.

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.

Default time is ten minutes.

ID of the project. @OutputOnly.

Special options for this build.

URL to logs for this build in Google Cloud Logging. @OutputOnly

Trait Implementations

impl Default for Build
[src]

Returns the "default value" for a type. Read more

impl Clone for Build
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Build
[src]

Formats the value using the given formatter. Read more

impl RequestValue for Build
[src]

impl ResponseResult for Build
[src]

Auto Trait Implementations

impl Send for Build

impl Sync for Build