Giter VIP home page Giter VIP logo

Comments (11)

gabemontero avatar gabemontero commented on July 21, 2024

thanks for the intel @carlossg

so, some additional details from poking around various repos

  1. for the openshift jenkins image, we are pulling in v0.10 of the kubernetes-plugin, and is what we test with

So users are either independently installing the plugins, or possibly took the openshift jenkins image and upgraded the kubernetes-plugin

  1. for v0.10, I believe that translates to v1.4.27 of the fabric8 k8s-client, if I read https://github.com/jenkinsci/kubernetes-plugin/blob/21d97779a575f018afb019deaa6a77821d16270a/pom.xml correctly

  2. I couldn't find a precise v1.4.27 branch in fabric8 k8s-client repo, but the closest v1.4.x branch I found listed okhttp 3.4.1 ... that also matches the okhttp jars I see in the v0.10 k8s plugin hpi file

  3. And yes, this repo current cites okhttp3 3.3.1

  4. note, the openshift-sync plugin current cites 2.1.2 of fabric8's openshift-client, which pulls in okhttp3 3.4.2

Most likely when I bump things, I should coordinate this plugin, the openshift sync plugin, and the version of the kubernetes-plugin the openshift jenkis image uses to

  • bump the k8s plugin to whatever new level we pick (v0.12 is the latest as of today)
  • bump sync plugin to a fabric8 openshift-client version whose okhttp3 version is OK with k8s plugin
  • bump this plugin's okhttp3 dependency to line up to above

@bparees @jstrachan @iocanel FYI

any thoughts folks?

thanks

from jenkins-plugin.

carlossg avatar carlossg commented on July 21, 2024

I think user just clicked the "update all plugins" button, which got them the kubernetes-plugin 0.12

0.13 should be out soon with fixes

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

Oh, I forgot, the openshift-restclient-java dependency of this plugin also uses okhttp3

It is currently pulling in 3.3.1 (which is why this plugin is at that version) ... we'll most likely need to coordinate there as well ... @jcantrill FYI

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

from jenkins-plugin.

GolanTrevize10 avatar GolanTrevize10 commented on July 21, 2024

Hi I got the same problem. I'm using a Jenkins instance outside Openshift with Openshift plugin version 1.0.48 and kubernetes plugin 0.12. Should I downgrade to 0.10?

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

from jenkins-plugin.

GolanTrevize10 avatar GolanTrevize10 commented on July 21, 2024

Ok I downgraded to 0.11 and it iis working

from jenkins-plugin.

scoheb avatar scoheb commented on July 21, 2024

Hi,

I was able to get around this by including this:

<plugins>
  <plugin>
  <groupId>org.jenkins-ci.tools</groupId>
  <artifactId>maven-hpi-plugin</artifactId>
  <configuration>
    <pluginFirstClassLoader>true</pluginFirstClassLoader>
  </configuration>
</plugin>

in the pom.xml for openshift/jenkins-plugin.

I rebuilt and re-installed the plugin and things worked.

My environment has:

  • rebuilt jenkins-plugin with above fix.
  • latest kubernetes (master branch) plugin

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

Thanks for the investigation @scoheb !!

For folks who are interested, background on that pom setting: https://wiki.jenkins.io/display/JENKINS/Plugin+Structure

After a couple of minutes of thought, I'm thinking the 2 changes

  1. @scoheb change
  2. the broader bump of the okhttp3 versions previously outlined

are not mutually exclusive. If need be, we employ 1) as a tactical fix if users' manual upgrade of k8s plugin proliferates and the pain experienced gets to be too much, but we still pursue 2) as the okhttp3 used with some of the plugins and their dependencies are getting old.

Opinions of course welcome

from jenkins-plugin.

bparees avatar bparees commented on July 21, 2024

makes sense to me

from jenkins-plugin.

gabemontero avatar gabemontero commented on July 21, 2024

bumping okhttp is even more complicated that first thought, given it appears okhttp-ws was in fact deprecated

more restructuring of the restclient would be needed, given where it is at from a future dev perspective, don't see that happening

given #148 isolates this plugin and addresses the original concern (we in fact have updated the openshift jenkins image to 1.0 of k8s plugin), I'm closing this as fixed

from jenkins-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.