Skip to content

Instantly share code, notes, and snippets.

@kinow
Created March 9, 2012 20:00
Show Gist options
  • Save kinow/2008351 to your computer and use it in GitHub Desktop.
Save kinow/2008351 to your computer and use it in GitHub Desktop.
pluginName = “testlink”;
found = false;
for(plugin in hudson.model.Hudson.instance.pluginManager.plugins) {
if(plugin.shortName.equals(pluginName)) {
found = true;
break;
}
}
if(found) { println "1"; } else { println "0"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment