Hi all! I'm trying to display a few simple things from the console for our security team. I'm getting the correct answers for all except whether the plugin is enabled or not. They are all returning enabled for me. Can someone tell me what I'm doing wrong in my groovy code?
Jenkins.instance.pluginManager.plugins.each{
plugin ->
boolean active = ( plugin.isActive() )
String enabled = ( active == true ? "Enabled" : "Disabled" )
println ("${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()} ${enabled}")
}
Thanks,
Eric