如何从Jenkins(Hudson)卸载插件? [英] How do I uninstall a plugin from Jenkins (Hudson)?

查看:215
本文介绍了如何从Jenkins(Hudson)卸载插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Jenkins安装中有一些不再需要的插件.我已经禁用了插件(并且我的构建仍然可以使用),并且我想完全删除插件.完全删除Jenkins(Hudson)插件的正确过程是什么?

I have a few plugins in my Jenkins installation which I no longer need. I've already disabled the plugins (and my build still work), and I'd like to remove the plugins completely. What is the right process for completely removing a Jenkins (Hudson) plugin?

推荐答案

Jesse Glick在他的答案中提到,如果您使用的是Jenkins 1.487或更高版本,则可以通过本机方式在Jenkins UI中卸载插件.有关详细信息,请参见 JENKINS-3070 .

As mentioned by Jesse Glick in his answer, if you are using Jenkins 1.487 or higher, then there is a native way to uninstall plugins in the Jenkins UI. See JENKINS-3070 for details.

如果您使用的Jenkins版本早于1.487,则可以尝试手动卸载该插件.正如某些人在评论中指出的那样,这可能在某些平台上不起作用(在那些情况下,请升级到至少1.487,以便您可以使用官方的卸载功能).

If you are using a version of Jenkins earlier than 1.487, then you can try manually uninstalling the plugin. As some people point out in the comments, this may not work on some platforms (in those cases, upgrade to at least 1.487 so that you can use the official uninstall feature).

要手动卸载插件,请停止Hudson/Jenkins,转到您的HUDSON_HOME/plugins目录,并同时删除.hpi文件和具有相同名称的文件夹.因此,如果要删除CVS插件,则将同时删除cvs.hpi文件和cvs目录.

To manually uninstall a plugin, stop Hudson/Jenkins, go to your HUDSON_HOME/plugins directory and remove both the .hpi file and the folder with the same name. So, if you were going to remove the CVS plugin, you would remove both the cvs.hpi file and the cvs directory.

之后,重新启动Hudson/Jenkins,插件将不再存在.

After that, restart Hudson/Jenkins and the plugin won't be there anymore.

这篇关于如何从Jenkins(Hudson)卸载插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆