Jenkins plugin does not work when packaged as an hpi

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins plugin does not work when packaged as an hpi

Jayalakshmi Nair

Hello,

We have a plugin which extends the Sectioned View and noticed that the builds waiting in the queue are not displayed in Filtered build queue. This was resolved by overriding the getItems() method in our plugin.
The above changes works fine in the development environment (i.e. , running using mvn hpi:run).
But when we install the plugin to any version of Jenkins(packaged as hpi), the above mentioned issue still exist.

How can I fix this?

 

Thanks in advance.

 

Best regards,
Jayalakshmi Nair

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8d82774d-45f4-4aad-8e9e-ee602a014f9f%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins plugin does not work when packaged as an hpi

Jesse Glick-4
On Thu, Apr 30, 2020 at 4:38 AM Jayalakshmi Nair
<[hidden email]> wrote:
> We have a plugin which extends the Sectioned View and noticed that the builds waiting in the queue are not displayed in Filtered build queue. This was resolved by overriding the getItems() method in our plugin.
> The above changes works fine in the development environment (i.e. , running using mvn hpi:run).
> But when we install the plugin to any version of Jenkins(packaged as hpi), the above mentioned issue still exist.

Perhaps the `jenkins.version` in your POM is much older than what you
tried installing it in interactively. Try updating to a recent LTS
baseline.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1QtBeiPigY8J77L3EUsWZsO8Sh%3DR4s4z3OkMy5vPuo8Q%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins plugin does not work when packaged as an hpi

Jayalakshmi Nair
Hi,

Thank you for the suggestion.

I looked into it. The jenkins.version in the pom is the same as the jenkins version to which the hpi is installed.
The problem still persists.

On Thursday, April 30, 2020 at 6:17:34 PM UTC+5:30, Jesse Glick wrote:
On Thu, Apr 30, 2020 at 4:38 AM Jayalakshmi Nair
<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_Ru6-Wp4AAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jayalaksh...@...> wrote:
> We have a plugin which extends the Sectioned View and noticed that the builds waiting in the queue are not displayed in Filtered build queue. This was resolved by overriding the getItems() method in our plugin.
> The above changes works fine in the development environment (i.e. , running using mvn hpi:run).
> But when we install the plugin to any version of Jenkins(packaged as hpi), the above mentioned issue still exist.

Perhaps the `jenkins.version` in your POM is much older than what you
tried installing it in interactively. Try updating to a recent LTS
baseline.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d5e96251-bc81-4284-b3b4-f2dbf9b1ef25%40googlegroups.com.