Skip to content

Conversation

@lashower
Copy link

Cloud build fails with exception

Your build failed to run: generic::invalid_argument: if 'build.service_account' is specified, the build must either (a) specify 'build.logs_bucket', (b) use the REGIONAL_USER_OWNED_BUCKET build.options.default_logs_bucket_behavior option, or (c) use either CLOUD_LOGGING_ONLY / NONE logging options 

To resolve it, I added this to cloudbuild.yaml

options: logging: CLOUD_LOGGING_ONLY

FYI, the tutorial for google-cloud-certified-professional-cloud-developer in Udemy has us create a Cloud Source Repository (181. Step 06 - Cloud Build Demo - Getting Code Ready with Cloud Source Repository), which is now deprecated. I tested the code with a GitHub hook.

Cloud build fails with exception "Your build failed to run: generic::invalid_argument: if 'build.service_account' is specified, the build must either (a) specify 'build.logs_bucket', (b) use the REGIONAL_USER_OWNED_BUCKET build.options.default_logs_bucket_behavior option, or (c) use either CLOUD_LOGGING_ONLY / NONE logging options" To resolve, I added this to cloudbuild.yaml ``` options: logging: CLOUD_LOGGING_ONLY ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant