Skip to content

Instantly share code, notes, and snippets.

@jeremy-page
Forked from lyuboraykov/printjenkins.groovy
Created January 13, 2020 16:54
Show Gist options
  • Save jeremy-page/d6a5a5cfa1a99109c4c962a9f08aa8f9 to your computer and use it in GitHub Desktop.
Save jeremy-page/d6a5a5cfa1a99109c4c962a9f08aa8f9 to your computer and use it in GitHub Desktop.
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