Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Print the methods of Jenkins inner object on script console
//all job name
jenkins.model.Jenkins.instance.items.each {
println "Job: ${}"
//method list of Jenkins instance
jenkins.model.Jenkins.instance.class.methods.each {
println "Jenkins method: ${}"
//method list of Maven2job(hudson.maven.MavenModuleSet)
hudson.maven.MavenModuleSet.class.methods.each {
println "job method: ${}"
//method list of Free Style Project(hudson.model.FreeStyleProject)
hudson.model.FreeStyleProject.class.methods.each {
println "job method : ${}"
//workspace path of specified job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.