-
Notifications
You must be signed in to change notification settings - Fork 658
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(JenkinsClient): make changes to jenkinsclient to use Spinnak… #1130
Merged
mergify
merged 8 commits into
spinnaker:master
from
Luthan95:jenkinsclient_replace_with_custom_exceptions
Sep 20, 2023
Merged
refactor(JenkinsClient): make changes to jenkinsclient to use Spinnak… #1130
mergify
merged 8 commits into
spinnaker:master
from
Luthan95:jenkinsclient_replace_with_custom_exceptions
Sep 20, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SheetalAtre
force-pushed
the
jenkinsclient_replace_with_custom_exceptions
branch
3 times, most recently
from
August 30, 2023 08:39
20a4d6c
to
61f1883
Compare
@Mergifyio update |
✅ Branch has been successfully updated |
dbyron-sf
reviewed
Sep 14, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
dbyron-sf
reviewed
Sep 14, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
dbyron-sf
reviewed
Sep 14, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
dbyron-sf
reviewed
Sep 14, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
dbyron-sf
reviewed
Sep 14, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
SheetalAtre
force-pushed
the
jenkinsclient_replace_with_custom_exceptions
branch
2 times, most recently
from
September 15, 2023 11:25
105ce22
to
7c3d25e
Compare
dbyron-sf
reviewed
Sep 15, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/build/BuildController.groovy
Outdated
Show resolved
Hide resolved
dbyron-sf
reviewed
Sep 15, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
dbyron-sf
reviewed
Sep 15, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
dbyron-sf
reviewed
Sep 15, 2023
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Outdated
Show resolved
Hide resolved
SheetalAtre
force-pushed
the
jenkinsclient_replace_with_custom_exceptions
branch
4 times, most recently
from
September 19, 2023 19:46
c2be8a4
to
c498bea
Compare
dbyron-sf
approved these changes
Sep 20, 2023
…er custom exception instead of RetrofitError using SpinnakerRetrofitErrorHandler
…eadable by removing redundant code
… were missed in previous commit
…from ScmDetails.getGitDetails() as no need to catch and rethrow
since it has a retryable property
dbyron-sf
force-pushed
the
jenkinsclient_replace_with_custom_exceptions
branch
from
September 20, 2023 15:53
5de31f6
to
7b08c77
Compare
dbyron-sf
added a commit
to spinnakerbot/igor
that referenced
this pull request
Oct 30, 2023
…OfProject The jenkinsClient inside JenkinsService comes from JenkinsConfig, wihch, as of spinnaker#1130, uses SpinnakerRetrofitErrorHandler. Therefore, the getBuilds calls inside the try/catch block inside processBuildsOfProject throws a SpinnakerServerException. spinnaker#1130 updated the 'should continue processing other builds from a master even if one or more build fetches fail' test to throw a SpinnakerServerException with a RetrofitError as its cause instead of a RuntimeException with a RetrofitError as its cause. With spinnaker/kork#1110, the SpinnakerServerException no longer has a RetrofitError as its cause. It has the "mock root cause" exception as its cause. But, because spinnaker/kork#1110 adds a url attribute to SpinnakerServerException, the cause is no longer necessary for including a url in the "Error communicating with jenkins" log message, and this commit updates the logic accordingly.
mergify bot
pushed a commit
that referenced
this pull request
Oct 30, 2023
* chore(dependencies): Autobump korkVersion * fix(web): fix exception handling in JenkinsBuildMonitor.processBuildsOfProject The jenkinsClient inside JenkinsService comes from JenkinsConfig, wihch, as of #1130, uses SpinnakerRetrofitErrorHandler. Therefore, the getBuilds calls inside the try/catch block inside processBuildsOfProject throws a SpinnakerServerException. #1130 updated the 'should continue processing other builds from a master even if one or more build fetches fail' test to throw a SpinnakerServerException with a RetrofitError as its cause instead of a RuntimeException with a RetrofitError as its cause. With spinnaker/kork#1110, the SpinnakerServerException no longer has a RetrofitError as its cause. It has the "mock root cause" exception as its cause. But, because spinnaker/kork#1110 adds a url attribute to SpinnakerServerException, the cause is no longer necessary for including a url in the "Error communicating with jenkins" log message, and this commit updates the logic accordingly. * refactor(web/test): clean up exception mocking in JenkinsBuildMonitorSpec remove unused runtimeException and rename retrofitEx since it's no longer a retrofitEx --------- Co-authored-by: root <root@2f91e8016c3c> Co-authored-by: David Byron <dbyron@salesforce.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…er custom exception instead of RetrofitError using SpinnakerRetrofitErrorHandler
Make Jekinsclient use of spinnakerCustomexception by setting SpinnakerRetrofitErrorHandler as ErrorHandler, so avoid direct use of RetrofitError