On Tue, Mar 8, 2022 at 12:44 PM Stefan Coussens <stefan.couss...@gmail.com>
wrote:

> Hi,
>
> We are using the LST cycle but this gives issues when I try to update
> plugins.
> My use case:
>
> Ansible playbook updates the linux server (and jenkins LST if available)
> After that I use an ansible playbook to (
> https://github.com/wcm-io-devops/ansible-jenkins-facts) look for plugins
> where "hasUpdate = true" and then update the plugin.
>
> This has failed a couple of times and when jenkins loads I get :
>
>
> XXX Plugin
> Jenkins (2.323) or higher required
>
> What method returns if an plugin is compatible with the current version of
> jenkins?
> (https://javadoc.jenkins.io/hudson/model/UpdateSite.Plugin.html)
>
> What does "isForNewerHudson()" do?
>
> I think I want the
>
> isCompatible
> <https://javadoc.jenkins.io/hudson/model/UpdateSite.Plugin.html#isCompatible-->
> ()
> Returns true if the plugin and its dependencies are fully compatible with
> the current installation This is set to restricted for now, since it is
> only being used by Jenkins UI or Restful API at the moment.
>
> field/method but this is restricted ;(
>

#isForNewerHudson is a reasonable idea, but with the improved update site
tiering that should only matter for 3rd party update sites, outdated
releases of Jenkins (>12 months), or misconfigured instances.

Make sure you access update-center.json URLs with the ?version query
parameter and specify which version of Jenkins you're on unless you track
the latest release. Jenkins does that automatically, if you bypass Jenkins
you need to add this.
Docs: https://github.com/jenkins-infra/update-center2/tree/master/site

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMo7PtLxWV%2BtgaB4srwn%2BpQkoFzty%2B4jr-UkFLtu3k5g6%3D0QVg%40mail.gmail.com.

Reply via email to