[英]Jenkins plugin only works in dev environment (not packaged as HPI file)
We are having a strange issue with our Jenkins plugin. 我们的Jenkins插件存在一个奇怪的问题。 In the development environment (running using mvn), the plugin works perfectly fine. 在开发环境中(使用mvn运行),该插件可以正常工作。 But when we install the plugin (using marketplace or hpi file) to seemingly any version of Jenkins, it is totally broken. 但是,当我们将插件(使用市场或hpi文件)安装到Jenkins的任何版本时,它完全被破坏了。 Our post-build action (publisher) registers but our configuration form is completely blank. 我们的构建后操作(发布者)已注册,但我们的配置表格完全空白。 It only shows the delete button to remove the action. 它仅显示删除按钮以删除操作。 What could be different about running from maven (hpi:run) vs installing from the marketplace or hpi file? 从maven(hpi:run)运行与从市场或hpi文件安装有何不同?
I finally figured it out. 我终于弄明白了。 The capitalization of the resources folder that corresponds to the publisher must match the capitalization of the publisher class name. 对应于发布者的资源文件夹的大小写必须与发布者类名称的大小写匹配。 I think this would probably only be an issue on windows. 我认为这可能只是Windows上的问题。 Also its strange that it works totally fine in the dev environment. 同样奇怪的是,它在开发环境中工作得很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.