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

fix(bitbucket): Log when Bitbucket event unknown #581

Merged
merged 2 commits into from
Jun 20, 2019
Merged

fix(bitbucket): Log when Bitbucket event unknown #581

merged 2 commits into from
Jun 20, 2019

Conversation

dotdotdotpaul
Copy link
Contributor

There are rare cases (often when the /bitbucket endpoint is used instead
of /stash) where the bitbucket event type doesn't match either the
Cloud or Server types; this can cause an NPE in the subsequent log
message because "branch" doesn't get set (this was also fixed, although
should probably not happen any more). In this case, we log the fact
that we couldn't determine the Cloud/Server type based on the event_type
(noting the event_type we did get) and return.

There are rare cases (often when the /bitbucket endpoint is used instead
of /stash) where the bitbucket event type doesn't match _either_ the
Cloud or Server types; this can cause an NPE in the subsequent log
message because "branch" doesn't get set (this was also fixed, although
should probably not happen any more).  In this case, we log the fact
that we couldn't determine the Cloud/Server type based on the event_type
(noting the event_type we _did_ get) and return.
@cfieber cfieber merged commit 7c95141 into spinnaker:master Jun 20, 2019
@dotdotdotpaul dotdotdotpaul deleted the handle-indeterminate-bitbucket-event branch June 20, 2019 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants