如何将jenkins插件捆绑到jenkins.war中 [英] How to bundle jenkins plugins into jenkins.war

查看:204
本文介绍了如何将jenkins插件捆绑到jenkins.war中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一些插件捆绑到Jenkins.war中,但是我不确定该如何精确.我一直在引用此页面: https://wiki.jenkins -ci.org/display/JENKINS/Bundling+plugins+with+Jenkins ,但我对具体细节感到困惑.如果仅将想要的插件中的.hpi文件移到/WEB-INF/plugins/中,我还需要执行其他哪些步骤才能真正获取新的.war文件?我应该运行提供的pom文件吗,如果是,应该在哪里/如何运行它?我还应该确保自己做些其他事情吗?

I'm trying to bundle some plugins into Jenkins.war, but I'm unsure how to exactly. I've been referencing this page: https://wiki.jenkins-ci.org/display/JENKINS/Bundling+plugins+with+Jenkins, but I'm confused about the specifics. If I just move the .hpi files from the plugins I want into /WEB-INF/plugins/, what other steps would I have to do to actually get a new .war file? Should I run the pom file provided, and if so, where/how should I run it? Anything else I should make sure I do?

推荐答案

如果您正在寻找一次将插件捆绑到jenkins.war中的方法,那么只需以7-zip或任何存档提取器打开war文件,然后复制插件即可到/WEB-INF/plugins/并保存.它应该可以正常工作.

If you're looking for one time bundlling your plugins into jenkins.war, then just open war file in 7-zip or any archive extracter then copy the plugins into /WEB-INF/plugins/ and save it. It should work fine.

如果您希望自动将插件与较新的更改捆绑在一起,请 https ://wiki.jenkins-ci.org/display/JENKINS/Bundling+plugins+with+Jenkins 解释了插件pom.xml的外观和Ant目标文件的内容.

If you want to automatically bundle plugins with newer changes, https://wiki.jenkins-ci.org/display/JENKINS/Bundling+plugins+with+Jenkins explains how your plugin pom.xml should look and contents of your Ant target file.

这篇关于如何将jenkins插件捆绑到jenkins.war中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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