Last active
November 6, 2018 13:08
-
-
Save axdotl/cda2010ff2fa57bf0bdfcdf158201586 to your computer and use it in GitHub Desktop.
Which Jenkins Plugin is providing this class?
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 characters
String className = "org.yaml.snakeyaml.Yaml" | |
def clazzResource = className.replaceAll("\\.", "/") + ".class" | |
println "Looking for: ${clazzResource}\n" | |
Jenkins.instance.pluginManager.activePlugins.forEach { PluginWrapper plugin -> | |
def c = plugin.classLoader.getResources(clazzResource) | |
if (c.hasMoreElements()) { | |
println "Found in ${plugin}" | |
println Collections.list(c).join("\n") + "\n" | |
} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment