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@2d181762
println(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]

 

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 [email protected].
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.

Reply via email to