Class not found: io.kubernetes.client.openapi.models.V1Service

According to @hardway-studio ’s answer #4648446, Jackson 2 API plugin version 2.11.1 breaks our deployment. To be precise, this commit: https://github.com/jenkinsci/jackson2-api-plugin/commit/cbbdf36843505efd5d2d7cd4769018e4cc09f450

But if we downgrade the plugin directly, it will cause failure to load many other plugin.

My ugly way is to fork the plugin source code from GitHub, revert this commit and compile it. (Maybe this operation would break some other plugins?)

Manually upload the artifact(jackson2-api.hpi) to Jenkins and finally everything is fine, hope this problem can be fixed as soon as possible.


I found the root cause of this behaviour. Jackson 2 API plugin version 2.11.1 is breaking kube deployments; you can find more info by the link below:
https://issues.jenkins-ci.org/browse/JENKINS-62995

Downgrading the following plugins worked for me: Jackson 2 API v2.10.0,
Kubernetes v1.21.3,
Kubernetes Client API v4.6.3-1,
Kubernetes Continuous Deploy v2.1.2,
Kubernetes Credentials v0.5.0

As those plugins are default, you would need to find the relevant version source files in https://plugins.jenkins.io/, and upload them to your Jenkins server by going
Manage Jenkins --> Manage Plugins --> Advanced --> Upload Plugin section