Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins script console: list of available jenkins methods?

Tags:

I would like to use the jenkins script console some more.

Where do I have to look in order to find a list of available Objects/Methods that I can use via groovy? Is there something online? Should I browse the source on Github? Where would I start?

Like in this example, how would I have known that hudson.model.Hudson.instance.pluginManager.plugins exists and is ready to be called from the jenkins script console?

println(hudson.model.Hudson.instance.pluginManager.plugins) 

Thanks!

like image 698
nemoo Avatar asked Jun 12 '12 10:06

nemoo


2 Answers

You are looking for Jenkins Main Module API.

You may find this answer helpful in getting yourself on your way.

like image 183
malenkiy_scot Avatar answered Sep 20 '22 16:09

malenkiy_scot


You can enter a groovy script in the script console.

The complete API can be found at the jenkins javadoc.

like image 24
mtk Avatar answered Sep 19 '22 16:09

mtk