Skip to content

Instantly share code, notes, and snippets.

@rodrigozrusso
Last active November 18, 2015 12:58
Show Gist options
  • Save rodrigozrusso/6df73296473729f75d40 to your computer and use it in GitHub Desktop.
Save rodrigozrusso/6df73296473729f75d40 to your computer and use it in GitHub Desktop.
Weird way to write to standard jenkins output log in groovy
def config = new HashMap()
def bindings = getBinding()
config.putAll(bindings.getVariables())
def out = config['out']
new ClassA().testMe(out);
class ClassA {
void testMe(out) {
out.println('testMe');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment