MuziK
MuziK
@bitwiseman I am on Jenkins 2.468 and Github plugin 1.40.0 and on Java 7 (JDK 17.0.5) .. Is there any compatibility issue in this?
@bitwiseman I downgraded Github plugin version to 1.34. Still the same issue persists. Appreciate any advise on this.
@bitwiseman Thanks for responding. Hmm, I tried every possible thing at my disposal to get rid of this issue, but I just could not. Apart from plugins github, github-api and...
@bitwiseman Also, below is the piece of code I am executing to fetch the list of organization repositories using github API, I am using `GitHubBuilder` method. Could that be the...
@bitwiseman oh yes, custom code in Jenkins DSL. Thanks so much for the code update. I will try this and update you the results here :)
@bitwiseman I added the Gradle dependency for okhttp as follows, `implementation 'com.squareup.okhttp3:okhttp:4.12.0'` and then modified the above lines of code as you provided. Ended up with the `java.lang.ClassNotFoundException: okhttp3.OkHttpClient` error....
Hi @bitwiseman This is the current error after updating with the recent code you provided. `java.nio.channels.ClosedChannelException at java.base/sun.nio.ch.SocketChannelImpl.ensureOpen(SocketChannelImpl.java:202) at java.base/sun.nio.ch.SocketChannelImpl.beginConnect(SocketChannelImpl.java:786) at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:874) at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$1(PlainHttpConnection.java:210) at java.base/java.security.AccessController.doPrivileged(AccessController.java:571) at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:212) Caused: java.net.ConnectException...
@bitwiseman Also, I was getting the following error when using okhttp3.OkHttpClient.Builder, `java.lang.ClassNotFoundException: okhttp3.OkHttpClient$Builder at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: db356d2b-85f4-45f7-9aac-98f62d622047 Caused: java.lang.NoClassDefFoundError: okhttp3/OkHttpClient$Builder at com.optiva.jenkins.jobdsl.GithubFetcher.getGithubConnection(GithubFetcher.groovy:33) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at...