How to bundle jenkins plugins into jenkins.war

不问归期 提交于 2019-12-13 15:30:14

问题


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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/24067378/how-to-bundle-jenkins-plugins-into-jenkins-war

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!