Created
November 12, 2019 01:29
-
-
Save techlunacy/c998e585481ad904b5a58bd23b8f9ef8 to your computer and use it in GitHub Desktop.
Revisions
-
techlunacy created this gist
Nov 12, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ import jenkins.* import jenkins.model.* import hudson.* import hudson.model.* List<String> jenkinsPlugins = new ArrayList<String>(Jenkins.instance.pluginManager.activePlugins); jenkinsPlugins.sort { it.displayName } println "" jenkinsPlugins.each{ plugin -> if(plugin.getUpdateInfo()){ println ("${plugin.getShortName()}:${plugin.getUpdateInfo().version}") } else{ println ("${plugin.getShortName()}:${plugin.getVersion()}") } }