jenkins docker plugin 问题及解决方案




在Jenkins中使用docker插件遇到的问题:
docker 插件升级后,不能启动容器。
1
Cannot construct instance of `com.github.dockerjava.api.model.Volume` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('/run') at [Source: (byte[])"{"Id":"2ef1b472ff7bdd382b179d22eb621f50a04d55f981b362af583815b5afb49c04",

 

解决过程及方案:
经查阅资料https://github.com/jenkinsci/docker-plugin/issues/821 大概讲的是说Jackson api的 V2.12.0有问题,需要降级。
我尝试去降级,但是导致别的插件不可用, docker不能加载到,,此时,
尝试降级别的插件,依旧出现不兼容问题,导致job不可以运行,
尝试降级Jenkins,理想情况下Jenkins的插件讲采用旧的版本,但是未果。
遂,重装Jenkins。

详细问题
描述如前面的连接描述https://github.com/jenkinsci/docker-plugin/issues/821。

update:
这里看到该问题评论下给出了新版本的jackson api,经测试可以使用
By following comments of @cowtowncoder and @pjdarton, took a plugin build from using both jackson and databind 2.12.1-SNAPSHOT and it seems to fix the issue. All cloud builds started running again. Cheers for the explanations.
jackson2-api.hpi.zip
posted @   歆xxxxx  阅读(640)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
点击右上角即可分享
微信分享提示