How do i print the list of jobs per plugin in Jenkins

HOW TO -️ October 18, 2021

I'm trying to list the jenkins jobs per plugin is being utilized. I see there's a plugin in jenkins,, which displays the plugins usage in the Jenkins UI. But how do i get the same output from the groovy script?


i've a jenkins master and i'm trying list the jobs or builds that are being utilized by a particular plugin. Ex: how many jobs are configured/used by maven plugin i was trying to test these scripts, In a similar way i want to list all the jobs configured with a particular plugin.