-
Notifications
You must be signed in to change notification settings - Fork 657
refactor(retrofit2): upgrade code to use retrofit2 #1313
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
Conversation
@Mergifyio update |
✅ Branch has been successfully updated |
igor-web/src/main/java/com/netflix/spinnaker/igor/config/HelmConverterFactory.java
Show resolved
Hide resolved
igor-monitor-travis/src/main/java/com/netflix/spinnaker/igor/travis/config/TravisConfig.java
Outdated
Show resolved
Hide resolved
igor-web/src/main/groovy/com/netflix/spinnaker/igor/build/BuildController.groovy
Show resolved
Hide resolved
igor-web/src/main/groovy/com/netflix/spinnaker/igor/config/JenkinsConfig.groovy
Outdated
Show resolved
Hide resolved
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Show resolved
Hide resolved
igor-web/src/main/groovy/com/netflix/spinnaker/igor/gitlabci/service/GitlabCiService.java
Show resolved
Hide resolved
igor-web/src/main/java/com/netflix/spinnaker/igor/concourse/service/ConcourseService.java
Outdated
Show resolved
Hide resolved
igor-web/src/main/java/com/netflix/spinnaker/igor/concourse/service/ConcourseService.java
Outdated
Show resolved
Hide resolved
igor-web/src/test/groovy/com/netflix/spinnaker/igor/concourse/client/ConcourseClientSpec.groovy
Show resolved
Hide resolved
igor-web/src/main/java/com/netflix/spinnaker/igor/config/HelmConverterFactory.java
Show resolved
Hide resolved
.setLog(new Slf4jRetrofitLogger(TravisClient.class)) | ||
.setErrorHandler(SpinnakerRetrofitErrorHandler.getInstance()) | ||
return new Retrofit.Builder() | ||
.baseUrl(address) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you refer this and make sure the address doesn't end up in baseUrl must end in /
error. And this is applicable to all such retrofit2 client definitions.
igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/service/JenkinsService.java
Show resolved
Hide resolved
igor-web/src/main/groovy/com/netflix/spinnaker/igor/config/BitBucketConfig.groovy
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alice485 - there are several places where Retrofit2SynCall.execute() is missing. Here are what I found so far:
6d69e8a
to
0c4d482
Compare
igor-web/src/main/java/com/netflix/spinnaker/igor/concourse/client/ConcourseClient.java
Outdated
Show resolved
Hide resolved
a57dc32
to
e196b7f
Compare
…y class to prevent 'baseUrl must end in /' error Co-authored-by: root <root@819552d2cd6b>
f9c958e
to
2b321b2
Compare
igor-core/src/test/java/com/netflix/spinnaker/igor/util/RetrofitUtilsTest.java
Outdated
Show resolved
Hide resolved
2b321b2
to
b56e2f9
Compare
igor-web/src/main/groovy/com/netflix/spinnaker/igor/config/JenkinsConfig.groovy
Show resolved
Hide resolved
igor-web/src/main/groovy/com/netflix/spinnaker/igor/scm/stash/client/StashClient.groovy
Outdated
Show resolved
Hide resolved
…nkinsOkHttpClientProvider
Thank you @alice485 ! Could you please add a release note similar to https://spinnaker.io/changelogs/1.37.0-changelog/#retrofit2-upgrade? |
RetrofitError