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(jenkins): replacing retrofit error #1187

Closed
wants to merge 1 commit into from

Conversation

xibz
Copy link

@xibz xibz commented Oct 26, 2023

igor relies on the SpinnakerRetrofitHandler and it looks like this one
got missed, which would cause the getBuilds method to fail if an
exception occurred rather than happily carrying on.

@dbyron-sf
Copy link
Contributor

dbyron-sf commented Oct 27, 2023

From what I can tell, this isn't really tied to spinnaker/kork#1108. It's the getBuilds call inside the try/catch block that could throw a Spinnaker*Exception, via jenkinsService.getBuilds. The jenkinsClient inside JenkinsService comes from JenkinsConfig, which already (as of #1130) uses SpinnakerRetrofitErrorHandler.

igor relies on the SpinnakerRetrofitHandler and it looks like this one
got missed, which would cause the `getBuilds` method to fail if an
exception occurred rather than happily carrying on.

Signed-off-by: benjamin-j-powell <bjp@apple.com>
@xibz xibz changed the title fix(retrofit): Change RetrofitError to SpinnakerServerException fix(jenkins): replacing retrofit error Oct 28, 2023
@@ -43,6 +43,7 @@ dependencies {
implementation "org.codehaus.groovy:groovy"

implementation "com.fasterxml.jackson.core:jackson-annotations"
implementation 'com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.13.1'
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need this?

@dbyron-sf
Copy link
Contributor

included in #1188

@dbyron-sf dbyron-sf closed this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants