Last active
November 18, 2015 12:58
-
-
Save rodrigozrusso/6df73296473729f75d40 to your computer and use it in GitHub Desktop.
Weird way to write to standard jenkins output log in groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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