简体   繁体   English

Jenkins插件仅在开发环境中有效(不打包为HPI文件)

[英]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.

相关问题 Jenkins hpi插件有太多jar文件 - Jenkins hpi plugin has too many jar files 如何从 jenkins 的现有项目生成 .hpi 插件 - How to generate an .hpi plugin from an existing project for jenkins mvn hpi:运行失败,错误参数'minimumJavaVersion'是目标org.jenkins-ci.tools:maven-hpi-plugin:3.5:run所必需的 - mvn hpi:run fails with error parameter 'minimumJavaVersion' is required for goal org.jenkins-ci.tools:maven-hpi-plugin:3.5:run 由 maven 插件打包的 Spring 引导应用程序不起作用,在 IDE 中工作 - Spring boot application packaged by maven plugin not working, works in IDE Jenkins Workflow插件Maven“此环境中未提供编译器” - Jenkins Workflow plugin Maven “No compiler is provided in this environment” 将数据导出到Excel可以在Eclipse中工作,但打包成.jar文件时则不能工作 - Exporting data to Excel works in eclipse but not when packaged as a .jar file 添加对打包为jar的插件的引用 - Add reference to a plugin packaged as jar Jenkins全新部署使用容器部署插件,但如果重新部署则失败 - Jenkins fresh deploy works using container deployment plugin, but fails if redeploying 使用Jenkins将War文件从开发人员部署到QC到实时环境 - Using Jenkins to deploy a war file from dev to QC to live environments Jenkins Artifactory插件不生成POM文件 - Jenkins Artifactory plugin not generating POM file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM