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 -- 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/a60f5a9d-138f-4a43-b508-fd81a096da34n%40googlegroups.com.