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 ;(

Any one that can help?
kind regards

Stefan

-- 
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/d0e810f2-454b-43d3-b626-525689818221n%40googlegroups.com.

Reply via email to