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

refactor(Githubclient): make changes to Git(master|lab) and BitBucket… #1104

Merged

Conversation

Luthan95
Copy link
Contributor

… to use Spinnaker custom exception instead of RetrofitError using SpinnakerRetrofitErrorHandler

Make use of custom spinnaker exceptions from kork service to avoid direct usage of RetrofitError using SpinnakerRetrofitErrorHandler for Git(master|lab) and BitBucket to achieve a common approach around all services

@Luthan95 Luthan95 force-pushed the custom_exception_handling_gitclient branch from 9508bfa to 7824fce Compare May 1, 2023 12:02
@Luthan95 Luthan95 force-pushed the custom_exception_handling_gitclient branch from 7824fce to b920f8d Compare May 10, 2023 02:23
@SheetalAtre SheetalAtre force-pushed the custom_exception_handling_gitclient branch 4 times, most recently from e2a2b22 to d337376 Compare August 29, 2023 14:41
@SheetalAtre SheetalAtre force-pushed the custom_exception_handling_gitclient branch 2 times, most recently from e5841f6 to f225284 Compare September 11, 2023 17:03
@dbyron-sf
Copy link
Contributor

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Sep 14, 2023

update

✅ Branch has been successfully updated

throw ex;
e.setRetryable(false);
throw e;
} catch (SpinnakerServerException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this is faithful to the original behavior, but it doesn't seem right...a note for our future selves.

@SheetalAtre SheetalAtre force-pushed the custom_exception_handling_gitclient branch 2 times, most recently from e0e6249 to 289916b Compare September 15, 2023 11:03
Luthan95 and others added 3 commits September 19, 2023 09:08
…Handler for custom error handling in Github, GitlabCi, BitBucket, ManagedScmDelivery
@SheetalAtre SheetalAtre force-pushed the custom_exception_handling_gitclient branch from 289916b to 5986a78 Compare September 19, 2023 03:39
SheetalAtre and others added 3 commits September 19, 2023 09:16
…ed missing line for GitHubCommitController in catch of SpinnakerServerException
…: change Spinnaker*Exception handling code for readability
…scm/github/CommitController.compareCommits

to clean up the code / reduce instanceof checks
@dbyron-sf dbyron-sf marked this pull request as ready for review September 19, 2023 18:43
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Sep 19, 2023
@mergify mergify bot added the auto merged label Sep 19, 2023
@mergify mergify bot merged commit c48d215 into spinnaker:master Sep 19, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants