Groovy: what’s the purpose of “def” in “def x = 0”?
In the following piece of code (taken from the Groovy Semantics Manual page), why prefix the assignment with the keyword def? def x … Read more
In the following piece of code (taken from the Groovy Semantics Manual page), why prefix the assignment with the keyword def? def x … Read more
Groovy adds the execute method to String to make executing shells fairly easy; println “ls”.execute().text but if an error happens, then there is … Read more
I don’t understand gradle plugins block apply plugin: ‘someplugin1’ apply plugin: ‘maven’ and other one: plugins { id ‘org.hidetake.ssh’ version ‘1.1.2’ } In … Read more
I have a String that represents an integer value and would like to convert it to an int. Is there a groovy equivalent … Read more
I have something like this on a Jenkinsfile (Groovy) and I want to record the stdout and the exit code in a variable … Read more