Class: Google::Cloud::Build::V1::BuildOptions
- Inherits:
-
Object
- Object
- Google::Cloud::Build::V1::BuildOptions
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb
Overview
Optional arguments to enable specific features of builds.
Defined Under Namespace
Modules: DefaultLogsBucketBehavior, LogStreamingOption, LoggingMode, MachineType, SubstitutionOption, VerifyOption Classes: PoolOption
Instance Attribute Summary collapse
-
#automap_substitutions ⇒ ::Boolean
Option to include built-in and custom substitutions as env variables for all build steps.
-
#default_logs_bucket_behavior ⇒ ::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior
Optional.
-
#disk_size_gb ⇒ ::Integer
Requested disk size for the VM that runs the build.
-
#dynamic_substitutions ⇒ ::Boolean
Option to specify whether or not to apply bash style string operations to the substitutions.
-
#enable_structured_logging ⇒ ::Boolean
Optional.
-
#env ⇒ ::Array<::String>
A list of global environment variable definitions that will exist for all build steps in this build.
-
#log_streaming_option ⇒ ::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption
Option to define build log streaming behavior to Cloud Storage.
-
#logging ⇒ ::Google::Cloud::Build::V1::BuildOptions::LoggingMode
Option to specify the logging mode, which determines if and where build logs are stored.
-
#machine_type ⇒ ::Google::Cloud::Build::V1::BuildOptions::MachineType
Compute Engine machine type on which to run the build.
-
#pool ⇒ ::Google::Cloud::Build::V1::BuildOptions::PoolOption
Optional.
-
#requested_verify_option ⇒ ::Google::Cloud::Build::V1::BuildOptions::VerifyOption
Requested verifiability options.
-
#secret_env ⇒ ::Array<::String>
A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key.
-
#source_provenance_hash ⇒ ::Array<::Google::Cloud::Build::V1::Hash::HashType>
Requested hash for SourceProvenance.
-
#substitution_option ⇒ ::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption
Option to specify behavior when there is an error in the substitution checks.
-
#volumes ⇒ ::Array<::Google::Cloud::Build::V1::Volume>
Global list of volumes to mount for ALL build steps.
-
#worker_pool ⇒ ::String
deprecated
Deprecated.
This field is deprecated and may be removed in the next major version update.
Instance Attribute Details
#automap_substitutions ⇒ ::Boolean
Returns Option to include built-in and custom substitutions as env variables for all build steps.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#default_logs_bucket_behavior ⇒ ::Google::Cloud::Build::V1::BuildOptions::DefaultLogsBucketBehavior
Returns Optional. Option to specify how default logs buckets are setup.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#disk_size_gb ⇒ ::Integer
Returns 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 4000GB; builds that request more than the maximum are rejected with an error.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#dynamic_substitutions ⇒ ::Boolean
Returns 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.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#enable_structured_logging ⇒ ::Boolean
Returns Optional. Option to specify whether structured logging is enabled.
If true, JSON-formatted logs are parsed as structured logs.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#env ⇒ ::Array<::String>
Returns 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".
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#log_streaming_option ⇒ ::Google::Cloud::Build::V1::BuildOptions::LogStreamingOption
Returns Option to define build log streaming behavior to Cloud Storage.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#logging ⇒ ::Google::Cloud::Build::V1::BuildOptions::LoggingMode
Returns Option to specify the logging mode, which determines if and where build logs are stored.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#machine_type ⇒ ::Google::Cloud::Build::V1::BuildOptions::MachineType
Returns Compute Engine machine type on which to run the build.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#pool ⇒ ::Google::Cloud::Build::V1::BuildOptions::PoolOption
Returns Optional. Specification for execution on a WorkerPool.
See running builds in a private pool for more information.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#requested_verify_option ⇒ ::Google::Cloud::Build::V1::BuildOptions::VerifyOption
Returns Requested verifiability options.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#secret_env ⇒ ::Array<::String>
Returns 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.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#source_provenance_hash ⇒ ::Array<::Google::Cloud::Build::V1::Hash::HashType>
Returns Requested hash for SourceProvenance.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#substitution_option ⇒ ::Google::Cloud::Build::V1::BuildOptions::SubstitutionOption
Returns 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.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#volumes ⇒ ::Array<::Google::Cloud::Build::V1::Volume>
Returns 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.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |
#worker_pool ⇒ ::String
This field is deprecated and may be removed in the next major version update.
Returns This field deprecated; please use pool.name instead.
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb', line 2165 class BuildOptions include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Details about how a build should be executed on a `WorkerPool`. # # See [running builds in a private # pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) # for more information. # @!attribute [rw] name # @return [::String] # The `WorkerPool` resource to execute the build on. # You must have `cloudbuild.workerpools.use` on the project hosting the # WorkerPool. # # Format projects/\\{project}/locations/\\{location}/workerPools/\\{workerPoolId} class PoolOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specifies the manner in which the build should be verified, if at all. # # If a verified build is requested, and any part of the process to generate # and upload provenance fails, the build will also fail. # # If the build does not request verification then that process may occur, but # is not guaranteed to. If it does occur and fails, the build will not fail. # # For more information, see [Viewing Build # Provenance](https://cloud.google.com/build/docs/securing-builds/view-build-provenance). module VerifyOption # Not a verifiable build (the default). NOT_VERIFIED = 0 # Build must be verified. VERIFIED = 1 end # Supported Compute Engine machine types. # For more information, see [Machine # types](https://cloud.google.com/compute/docs/machine-types). module MachineType # Standard machine type. UNSPECIFIED = 0 # Highcpu machine with 8 CPUs. N1_HIGHCPU_8 = 1 # Highcpu machine with 32 CPUs. N1_HIGHCPU_32 = 2 # Highcpu e2 machine with 8 CPUs. E2_HIGHCPU_8 = 5 # Highcpu e2 machine with 32 CPUs. E2_HIGHCPU_32 = 6 # E2 machine with 1 CPU. E2_MEDIUM = 7 end # Specifies the behavior when there is an error in the substitution checks. module SubstitutionOption # Fails the build if error in substitutions checks, like missing # a substitution in the template or in the map. MUST_MATCH = 0 # Do not fail the build if error in substitutions checks. ALLOW_LOOSE = 1 end # Specifies the behavior when writing build logs to Cloud Storage. module LogStreamingOption # Service may automatically determine build log streaming behavior. STREAM_DEFAULT = 0 # Build logs should be streamed to Cloud Storage. STREAM_ON = 1 # Build logs should not be streamed to Cloud Storage; they will be # written when the build is completed. STREAM_OFF = 2 end # Specifies the logging mode. module LoggingMode # The service determines the logging mode. The default is `LEGACY`. Do not # rely on the default logging behavior as it may change in the future. LOGGING_UNSPECIFIED = 0 # Build logs are stored in Cloud Logging and Cloud Storage. LEGACY = 1 # Build logs are stored in Cloud Storage. GCS_ONLY = 2 # This option is the same as CLOUD_LOGGING_ONLY. STACKDRIVER_ONLY = 3 # Build logs are stored in Cloud Logging. Selecting this option will not # allow [logs # streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). CLOUD_LOGGING_ONLY = 5 # Turn off all logging. No build logs will be captured. NONE = 4 end # Default Cloud Storage log bucket behavior options. module DefaultLogsBucketBehavior # Unspecified. DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED = 0 # Bucket is located in user-owned project in the same region as the # build. The builder service account must have access to create and write # to Cloud Storage buckets in the build project. REGIONAL_USER_OWNED_BUCKET = 1 # Bucket is located in a Google-owned project and is not regionalized. LEGACY_BUCKET = 2 end end |