Advertisement
thijsthomas

SHOW ALL PLUGINS - UPDATE OR NO UPDATE (incl. versions nr.)

Oct 7th, 2022
1,118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.29 KB | None | 0 0
  1. def pluginList = new ArrayList(Jenkins.instance.pluginManager.plugins)
  2.  
  3. pluginList.sort { it.getShortName() }.each{
  4.   plugin ->
  5.     println ("${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()} : ${plugin.hasUpdate() ? plugin.getUpdateInfo().version : 'No Update'}")
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement