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