how to get the list of installed plugins in jenkins code example
Example: get jenkins plugin list
Jenkins.instance.pluginManager.plugins.each{
plugin ->
println ("${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()}")
}