//this will produce plugins.txt with the updated plugin version. def plugins = Jenkins.instance.pluginManager.plugins.toSorted() plugins.each { plugin -> def update = plugin.updateInfo def version = "${plugin.version}" if (update != null) { version = "${update.version}" println "# Upgraded ${plugin.shortName} from ${plugin.version} to ${update.version}" } println "${plugin.shortName}:${version}" }