cloud-build-notifiers icon indicating copy to clipboard operation
cloud-build-notifiers copied to clipboard

should extract build id in another way when build status is unknown

Open gcb-repos-robot opened this issue 2 years ago • 1 comments

In chat notifier, we extract the build id from the first 8 chars in the build id Here. But build id is empty when the build has status unknown and would throw this error:

http: panic serving 169.254.1.1:35855: runtime error: slice bounds out of range [:8] with length 0 goroutine 47

We should manually set the build id when the build status is unknown.

gcb-repos-robot avatar Jun 19 '23 20:06 gcb-repos-robot

cc @monicacinom

vicpadilla avatar Jul 10 '23 15:07 vicpadilla