zoukankan      html  css  js  c++  java
  • jenkins docker plugin 问题及解决方案




    在Jenkins中使用docker插件遇到的问题:
    docker 插件升级后,不能启动容器。
    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








    Life is colourful
  • 相关阅读:
    杜教筛学习笔记
    AtCoder Beginner Contest 188 F
    求和公式
    洛谷P4848 崂山白花蛇草水 权值线段树+KDtree
    二次剩余学习笔记
    Miller Rabin素数检测与Pollard Rho算法
    半平面交学习笔记
    凸包习题总结
    多项式半家桶
    CF997解题报告
  • 原文地址:https://www.cnblogs.com/cheney123456/p/14156431.html
Copyright © 2011-2022 走看看