Loop through Map in Groovy?
I have a very simple task I am trying to do in Groovy but cannot seem to get it to work. I am … Read more
I have a very simple task I am trying to do in Groovy but cannot seem to get it to work. I am … 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
How can I trigger build of another job from inside the Jenkinsfile? I assume that this job is another repository under the same … Read more
I am using javadoc doclets with gradle, so I need to use the package tools.jar, which is in the lib folder from the … Read more
I tried to open the Groovy Shell (groovysh) on Windows 8 and got the following output: java.util.prefs.WindowsPreferences <init> WARNING: Could not open/create prefs … Read more
Looked around for this solution for much too long now, and I’m not sure if I missed it or just misstyped something, but … 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
Are comments possible in a Jenkinsfile? If so, what’s the syntax? I am using the declarative pipeline syntax. I want to comment out … Read more
I’ll explain by example: Elvis Operator (?: ) The “Elvis operator” is a shortening of Java’s ternary operator. One instance of where this … 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