Cloud Build V1 API - Class Google::Cloud::Build::V1::BuildOptions (v0.25.0)

Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::BuildOptions.

Optional arguments to enable specific features of builds.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#automap_substitutions

def automap_substitutions() -> ::Boolean
Returns
  • (::Boolean) — Option to include built-in and custom substitutions as env variables for all build steps.

#automap_substitutions=

def automap_substitutions=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Option to include built-in and custom substitutions as env variables for all build steps.
Returns
  • (::Boolean) — Option to include built-in and custom substitutions as env variables for all build steps.

#default_logs_bucket_behavior

def default_logs_bucket_behavior() -> ::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior
Returns

#default_logs_bucket_behavior=

def default_logs_bucket_behavior=(value) -> ::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior
Parameter
Returns

#disk_size_gb

def disk_size_gb() -> ::Integer
Returns
  • (::Integer) — 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 2000GB; builds that request more than the maximum are rejected with an error.

#disk_size_gb=

def disk_size_gb=(value) -> ::Integer
Parameter
  • value (::Integer) — 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 2000GB; builds that request more than the maximum are rejected with an error.
Returns
  • (::Integer) — 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 2000GB; builds that request more than the maximum are rejected with an error.

#dynamic_substitutions

def dynamic_substitutions() -> ::Boolean
Returns
  • (::Boolean) — 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.

#dynamic_substitutions=

def dynamic_substitutions=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.

Returns
  • (::Boolean) — 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.

#env

def env() -> ::Array<::String>
Returns
  • (::Array<::String>) — 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".

#env=

def env=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — 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".

Returns
  • (::Array<::String>) — 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".

#log_streaming_option

def log_streaming_option() -> ::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption
Returns

#log_streaming_option=

def log_streaming_option=(value) -> ::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption
Parameter
Returns

#logging

def logging() -> ::Google::Cloud::Build::V1::BuildOptions::LoggingMode
Returns

#logging=

def logging=(value) -> ::Google::Cloud::Build::V1::BuildOptions::LoggingMode
Parameter
Returns

#machine_type

def machine_type() -> ::Google::Cloud::Build::V1::BuildOptions::MachineType
Returns

#machine_type=

def machine_type=(value) -> ::Google::Cloud::Build::V1::BuildOptions::MachineType
Parameter
Returns

#pool

def pool() -> ::Google::Cloud::Build::V1::BuildOptions::PoolOption
Returns

#pool=

def pool=(value) -> ::Google::Cloud::Build::V1::BuildOptions::PoolOption
Parameter
Returns

#requested_verify_option

def requested_verify_option() -> ::Google::Cloud::Build::V1::BuildOptions::VerifyOption
Returns

#requested_verify_option=

def requested_verify_option=(value) -> ::Google::Cloud::Build::V1::BuildOptions::VerifyOption
Parameter
Returns

#secret_env

def secret_env() -> ::Array<::String>
Returns
  • (::Array<::String>) — 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.

#secret_env=

def secret_env=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — 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.
Returns
  • (::Array<::String>) — 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.

#source_provenance_hash

def source_provenance_hash() -> ::Array<::Google::Cloud::Build::V1::Hash::HashType>
Returns

#source_provenance_hash=

def source_provenance_hash=(value) -> ::Array<::Google::Cloud::Build::V1::Hash::HashType>
Parameter
Returns

#substitution_option

def substitution_option() -> ::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption
Returns

#substitution_option=

def substitution_option=(value) -> ::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption
Parameter
Returns

#volumes

def volumes() -> ::Array<::Google::Cloud::Build::V1::Volume>
Returns
  • (::Array<::Google::Cloud::Build::V1::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.

#volumes=

def volumes=(value) -> ::Array<::Google::Cloud::Build::V1::Volume>
Parameter
  • value (::Array<::Google::Cloud::Build::V1::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.

Returns
  • (::Array<::Google::Cloud::Build::V1::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.

#worker_pool

def worker_pool() -> ::String
Returns
  • (::String) — This field deprecated; please use pool.name instead.

#worker_pool=

def worker_pool=(value) -> ::String
Parameter
  • value (::String) — This field deprecated; please use pool.name instead.
Returns
  • (::String) — This field deprecated; please use pool.name instead.