import org.jfrog.hudson.*import org.jfrog.hudson.ArtifactoryBuilder.*jenkins = Jenkins.get()def art = jenkins.getPlugin(org.jfrog.hudson.ArtifactoryPlugin)println(art) // org.jfrog.hudson.ArtifactoryPlugin@2d181762println(art.getWrapper().isActive()) // true
println(jenkins.getExtensionList(org.jfrog .hudson.ArtifactoryPlugin)) // []println(jenkins.getExtensionList('org.jfrog.hudson.ArtifactoryPlugin')) // []
println(jenkins.getExtensionList('org.jenkinsci.plugins.github.config.GitHubPluginConfig')) // [org.jenkinsci.plugins.github.config.GitHubPluginConfig@4508049f]
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/13af2a23-babe-4021-bc70-732fe824e742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
org.jfrog.hudson.ArtifactoryPlugin is not implementing an extension point (is not annotated by @Extension) so it's not in the extension list. So jenkins.getPlugin(org.jfrog.hudson.ArtifactoryPlugin) is what you should use for that class./B
2018-04-26 1:03 GMT+02:00 Calvin <calvi...@gmail.com>:
import org.jfrog.hudson.*import org.jfrog.hudson.ArtifactoryBuilder.*jenkins = Jenkins.get()def art = jenkins.getPlugin(org.jfrog.hudson.ArtifactoryPlugin)println(art) // org.jfrog.hudson.ArtifactoryPlugin@2d181762println(art.getWrapper().isActive()) // trueprintln(jenkins.getExtensionList(org.jfrog .hudson.ArtifactoryPlugin)) // []println(jenkins.getExtensionList('org.jfrog.hudson.ArtifactoryPlugin')) // []println(jenkins.getExtensionList('org.jenkinsci.plugins.github.config.GitHubPluginConfig')) // [org.jenkinsci.plugins.github.config.GitHubPluginConfig@4508049f]Artifactory Plugin is installed and active, yet I am unable to get its instance.I've been using .getExtensionList(String) for customizing plugins via Groovy. It's been successful for GitLab, GitHub, and many other plugins, but Artifactory seems to be unique.What's the correct way to configure Artifactory Plugin via Groovy?
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/13af2a23-babe-4021-bc70-732fe824e742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.