Comments (11)
thanks for the intel @carlossg
so, some additional details from poking around various repos
- 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
-
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
-
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
-
And yes, this repo current cites okhttp3 3.3.1
-
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.
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.
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.
from jenkins-plugin.
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.
from jenkins-plugin.
Ok I downgraded to 0.11 and it iis working
from jenkins-plugin.
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.
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
- @scoheb change
- 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.
makes sense to me
from jenkins-plugin.
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)
- Patch / Update resources HOT 9
- jenkins template using spec.clusterIP instead of spec.portalIP HOT 2
- Build output sometimes not shown in jenkins console output HOT 2
- Deployments don't work HOT 3
- Environment Variables don't respect Parameterised Builds HOT 6
- Timeout of builds HOT 3
- Unable to do openshiftTag() in pipeline HOT 1
- FR: Support of variables inside Openshift Exec HOT 9
- BUG: "Test connection" always returns "Connections successful" HOT 11
- BUG: OpenshiftExec ignores timeout HOT 12
- Confusing print statement if openshiftVerifyDeployment fails HOT 1
- Externalize the CERT_FILE = "/run/secrets/kubernetes.io/serviceaccount/ca.crt"; HOT 7
- Issue with Jenkin's Verify Build OpenShift plug-in functionality HOT 9
- Declarative pipeline support? HOT 4
- openshift-client-plugin really still a "tech preview" ? HOT 3
- Jenkins throws an error when using the openhiftBuild with the buildConfig parameter HOT 3
- Resulting GDSL is Broken HOT 2
- openshiftBuild should support binary build type. HOT 10
- Add deprecation warning and link to new plugin as first thing in repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-plugin.