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
#default_logs_bucket_behavior
def default_logs_bucket_behavior() -> ::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior
- (::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior) — Option to specify how default logs buckets are setup.
#default_logs_bucket_behavior=
def default_logs_bucket_behavior=(value) -> ::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior
- value (::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior) — Option to specify how default logs buckets are setup.
- (::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior) — Option to specify how default logs buckets are setup.
#disk_size_gb
def disk_size_gb() -> ::Integer
- (::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 1000GB; builds that request more than the maximum are rejected with an error.
#disk_size_gb=
def disk_size_gb=(value) -> ::Integer
- 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 1000GB; builds that request more than the maximum are rejected with an error.
- (::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 1000GB; builds that request more than the maximum are rejected with an error.
#dynamic_substitutions
def dynamic_substitutions() -> ::Boolean
-
(::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
-
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.
-
(::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>
-
(::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>
-
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".
-
(::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
- (::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption) — Option to define build log streaming behavior to Google Cloud Storage.
#log_streaming_option=
def log_streaming_option=(value) -> ::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption
- value (::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption) — Option to define build log streaming behavior to Google Cloud Storage.
- (::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption) — Option to define build log streaming behavior to Google Cloud Storage.
#logging
def logging() -> ::Google::Cloud::Build::V1::BuildOptions::LoggingMode
- (::Google::Cloud::Build::V1::BuildOptions::LoggingMode) — Option to specify the logging mode, which determines if and where build logs are stored.
#logging=
def logging=(value) -> ::Google::Cloud::Build::V1::BuildOptions::LoggingMode
- value (::Google::Cloud::Build::V1::BuildOptions::LoggingMode) — Option to specify the logging mode, which determines if and where build logs are stored.
- (::Google::Cloud::Build::V1::BuildOptions::LoggingMode) — Option to specify the logging mode, which determines if and where build logs are stored.
#machine_type
def machine_type() -> ::Google::Cloud::Build::V1::BuildOptions::MachineType
- (::Google::Cloud::Build::V1::BuildOptions::MachineType) — Compute Engine machine type on which to run the build.
#machine_type=
def machine_type=(value) -> ::Google::Cloud::Build::V1::BuildOptions::MachineType
- value (::Google::Cloud::Build::V1::BuildOptions::MachineType) — Compute Engine machine type on which to run the build.
- (::Google::Cloud::Build::V1::BuildOptions::MachineType) — Compute Engine machine type on which to run the build.
#pool
def pool() -> ::Google::Cloud::Build::V1::BuildOptions::PoolOption
-
(::Google::Cloud::Build::V1::BuildOptions::PoolOption) — Optional. Specification for execution on a
WorkerPool
.See running builds in a private pool for more information.
#pool=
def pool=(value) -> ::Google::Cloud::Build::V1::BuildOptions::PoolOption
-
value (::Google::Cloud::Build::V1::BuildOptions::PoolOption) — Optional. Specification for execution on a
WorkerPool
.See running builds in a private pool for more information.
-
(::Google::Cloud::Build::V1::BuildOptions::PoolOption) — Optional. Specification for execution on a
WorkerPool
.See running builds in a private pool for more information.
#requested_verify_option
def requested_verify_option() -> ::Google::Cloud::Build::V1::BuildOptions::VerifyOption
- (::Google::Cloud::Build::V1::BuildOptions::VerifyOption) — Requested verifiability options.
#requested_verify_option=
def requested_verify_option=(value) -> ::Google::Cloud::Build::V1::BuildOptions::VerifyOption
- value (::Google::Cloud::Build::V1::BuildOptions::VerifyOption) — Requested verifiability options.
- (::Google::Cloud::Build::V1::BuildOptions::VerifyOption) — Requested verifiability options.
#secret_env
def secret_env() -> ::Array<::String>
-
(::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>
-
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.
-
(::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>
- (::Array<::Google::Cloud::Build::V1::Hash::HashType>) — Requested hash for SourceProvenance.
#source_provenance_hash=
def source_provenance_hash=(value) -> ::Array<::Google::Cloud::Build::V1::Hash::HashType>
- value (::Array<::Google::Cloud::Build::V1::Hash::HashType>) — Requested hash for SourceProvenance.
- (::Array<::Google::Cloud::Build::V1::Hash::HashType>) — Requested hash for SourceProvenance.
#substitution_option
def substitution_option() -> ::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption
-
(::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption) — 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.
#substitution_option=
def substitution_option=(value) -> ::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption
-
value (::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption) — 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.
-
(::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption) — 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.
#volumes
def volumes() -> ::Array<::Google::Cloud::Build::V1::Volume>
-
(::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>
-
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.
-
(::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
-
(::String) — This field deprecated; please use
pool.name
instead.
#worker_pool=
def worker_pool=(value) -> ::String
-
value (::String) — This field deprecated; please use
pool.name
instead.
-
(::String) — This field deprecated; please use
pool.name
instead.