Jenkins deprecated protocols: JNLP-connect,JNLP2-connect

升级了Jenkins版本(2.89.1),出现以下警告:

《Jenkins deprecated protocols: JNLP-connect,JNLP2-connect》

This Jenkins instance uses deprecated protocols: JNLP-connect,JNLP2-connect. It may impact stability of the instance. If newer protocol versions are supported by all system components (agents, CLI and other clients), it is highly recommended to disable the deprecated protocols.Protocol Configuration

大概意思就是:

这个Jenkins实例使用了废弃的协议:jnlp – connect,jnlp2 – connect。它可能影响实例的稳定性。如果所有系统组件(代理、CLI和其他客户端)都支持更新的协议版本,那么强烈建议禁用已弃用的协议。(详见:https://jenkins.io/blog/2017/08/11/remoting-update

JNLP(Java Network Launching Protocol )是java提供的一种可以通过浏览器直接执行java应用程序的途径,它使你可以直接通过一个网页上的url连接打开一个java应用程序。Java桌面应用程序以JNLP 的方式发布,如果版本升级后,不需要再向所有用户发布版本,只需要更新服务器的版本,这就相当于让java应用程序有了web应用的优点。(摘自:百度百科

解决方案:禁用jnlp – connect,jnlp2 – connect即可

点击警告中的Protocol Configuration,或者点击系统管理 –> 全局安全配置

然后点击Agents 中的 Agent protocols…(详见文章末尾截图),取消勾选下面两项,最后保存即可:

Java Web Start Agent Protocol/1 (deprecated, unencrypted)

Java Web Start Agent Protocol/2 (deprecated, unencrypted)

《Jenkins deprecated protocols: JNLP-connect,JNLP2-connect》

    原文作者:jsyc2009
    原文地址: https://www.jianshu.com/p/ecc736965ce9
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞