class Google::Apis::CloudbuildV1::Build

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.

Attributes

create_time[RW]

Time at which the build was created. @OutputOnly Corresponds to the JSON property `createTime` @return [String]

finish_time[RW]

Time at whihc execution of the build was finished. @OutputOnly Corresponds to the JSON property `finishTime` @return [String]

id[RW]

Unique identifier of the build. @OutputOnly Corresponds to the JSON property `id` @return [String]

images[RW]

List of images expected to be built and pushed to Google Container Registry. If an image is listed here and the image is not produced by one of the build steps, the build will fail. Any images present when the build steps are complete will be pushed to Container Registry. Corresponds to the JSON property `images` @return [Array<String>]

logs_bucket[RW]

Google Cloud Storage bucket where logs should be written (see [Bucket Name Requirements](cloud.google.com/storage/docs/bucket-naming#requirements) ). Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. Corresponds to the JSON property `logsBucket` @return [String]

project_id[RW]

ID of the project. @OutputOnly. Corresponds to the JSON property `projectId` @return [String]

results[RW]

Results describes the artifacts created by the build pipeline. Corresponds to the JSON property `results` @return [Google::Apis::CloudbuildV1::Results]

source[RW]

Source describes the location of the source in a supported storage service. Corresponds to the JSON property `source` @return [Google::Apis::CloudbuildV1::Source]

start_time[RW]

Time at which execution of the build was started. @OutputOnly Corresponds to the JSON property `startTime` @return [String]

status[RW]

Status of the build. @OutputOnly Corresponds to the JSON property `status` @return [String]

steps[RW]

Describes the operations to be performed on the workspace. Corresponds to the JSON property `steps` @return [Array<Google::Apis::CloudbuildV1::BuildStep>]

timeout[RW]

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. Corresponds to the JSON property `timeout` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/cloudbuild_v1/classes.rb, line 404
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/cloudbuild_v1/classes.rb, line 409
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @results = args[:results] if args.key?(:results)
  @status = args[:status] if args.key?(:status)
  @finish_time = args[:finish_time] if args.key?(:finish_time)
  @timeout = args[:timeout] if args.key?(:timeout)
  @steps = args[:steps] if args.key?(:steps)
  @source = args[:source] if args.key?(:source)
  @create_time = args[:create_time] if args.key?(:create_time)
  @images = args[:images] if args.key?(:images)
  @start_time = args[:start_time] if args.key?(:start_time)
  @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
  @project_id = args[:project_id] if args.key?(:project_id)
end