Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cloudbuild.yaml for Google Developer Course #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant