Hi there,

In your case you need to look for all the Builds with 
the 
https://github.com/jenkinsci/promoted-builds-plugin/blob/master/src/main/java/hudson/plugins/promoted_builds/PromotedBuildAction.java
 
reference using the 
method: 
http://javadoc.jenkins-ci.org/hudson/model/Actionable.html#getAction-java.lang.Class-


So, just a snippet to illustrate the above:

Jenkins.instance?.getItemByFullName('test')?.
    getBuilds()?.
    findAll { 
it.getAction(hudson.plugins.promoted_builds.PromotedBuildAction).getPromotions()
 
}?.
          each {
println it
}


Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/500225e8-d3ba-4135-a557-dcf6255be22b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to