0%

Jenkins更新失败解决方案

笔者使用 Docker 部署了一个 Jenkins 镜像,最近升级镜像版本时遇到问题。

现在记录解决方案

java.lang.NoClassDefFoundError: org/jruby/javasupport/proxy/InternalJavaProxy

参考该链接解决

https://community.jenkins.io/t/jenkins-war-update-caused-issue-when-ruby-runtime-plugin-is-installed/3282

There may be deprecated plugins installed on your system that need to be removed.

The Jenkins project stopped distributing the Ruby runtime plugin, the Python runtime plugin, and plugins that depend on those two plugins in January 2022. You can find a detailed list of plugins and more information in the blog post:

大意是旧版本包含了已经弃用的插件。

1
Ruby runtime plugin

这个插件在 2.373 版本已经弃用了,需要卸载之前安装的该插件。

启动旧版本docker镜像后,我们发现在控制台面板无法卸载。

解决方案是,进入到$JENKINS_HOME/plugins目录,然后移除ruby-runtime*

即这两个文件

然后更新镜像版本,一切正常