Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Print to console in Jenkins Groovy system script
def out
def config = new HashMap()
def bindings = getBinding()
config.putAll(bindings.getVariables())
out = config['out']
out.println "Printed do Jenkins console."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment