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

error parsing image manifest on unsuccessful builds #212

Open
andrewmackett opened this issue Nov 14, 2024 · 0 comments
Open

error parsing image manifest on unsuccessful builds #212

andrewmackett opened this issue Nov 14, 2024 · 0 comments

Comments

@andrewmackett
Copy link

Unsuccessful Cloud Builds that have the images field defined create an error in the BigQuery notifier:

E1114 12:05:43.832522       1 notifiers.go:556] failed to run SendNotification: error parsing image manifest: error obtaining image reference: GET https://gcr.io/v2/project-id/image/manifests/tag: MANIFEST_UNKNOWN: Failed to fetch "tag"

I wouldn't expect the image to have been pushed to the repository in an unsuccessful build, so there will be no manifest for the notifier to lookup, causing the error.

I've opened #211 with a simple fix. This change executes the build image logic only if the build has a SUCCESS status.

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

No branches or pull requests

1 participant