Skip to content

Instantly share code, notes, and snippets.

@lyuboraykov
Last active February 8, 2024 10:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lyuboraykov/3a2af9bb6855db86eff0 to your computer and use it in GitHub Desktop.
Save lyuboraykov/3a2af9bb6855db86eff0 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."
@jcalderonSOMOS
Copy link

Or just println "Printed do Jenkins console."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment