Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saurabh-sp-tripathi/4a3526f13ac7b49966dc0a78bbcd1970 to your computer and use it in GitHub Desktop.
Save saurabh-sp-tripathi/4a3526f13ac7b49966dc0a78bbcd1970 to your computer and use it in GitHub Desktop.
quick copy paste for jenkins script console
def methods = obj.getClass().methods.collect { it.name }
println methods.each {println it}

//courtesy: my week memory, lazyness and https://stackoverflow.com/questions/22065290/how-to-get-all-method-names-of-a-class-without-inherited-methods-with-groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment