Class BuildOptions (2.0.2)

BuildOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Optional arguments to enable specific features of builds.

Attributes

NameDescription
source_provenance_hash Sequence[.cloudbuild.Hash.HashType]
Requested hash for SourceProvenance.
requested_verify_option .cloudbuild.BuildOptions.VerifyOption
Requested verifiability options.
machine_type .cloudbuild.BuildOptions.MachineType
Compute Engine machine type on which to run the build.
disk_size_gb int
Requested disk size for the VM that runs the build. Note that this is *NOT* "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.
substitution_option .cloudbuild.BuildOptions.SubstitutionOption
Option to specify behavior when there is an error in the substitution checks.
log_streaming_option .cloudbuild.BuildOptions.LogStreamingOption
Option to define build log streaming behavior to Google Cloud Storage.
worker_pool str
Option to specify a WorkerPool for the build. Format: projects/{project}/workerPools/{workerPool} This field is experimental.
logging .cloudbuild.BuildOptions.LoggingMode
Option to specify the logging mode, which determines where the logs are stored.
env Sequence[str]
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".
secret_env Sequence[str]
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 Secret. These variables will be available to all build steps in this build.
volumes Sequence[.cloudbuild.Volume]
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.

Classes

LogStreamingOption

LogStreamingOption(value)

Specifies the behavior when writing build logs to Google Cloud Storage.

LoggingMode

LoggingMode(value)

Specifies the logging mode.

MachineType

MachineType(value)

Supported VM sizes.

SubstitutionOption

SubstitutionOption(value)

Specifies the behavior when there is an error in the substitution checks.

VerifyOption

VerifyOption(value)

Specifies the manner in which the build should be verified, if at all.