Jenkins Java/Groovy API
A good starting point for Jenkins Java Api is the Jenkins class in jenkins.model The accessor to get the jenkins singleton can be found there.
import jenkins.model.*
Jenkins.getInstance()
Some examples can also be found here: