Last active
February 8, 2024 10:24
-
-
Save lyuboraykov/3a2af9bb6855db86eff0 to your computer and use it in GitHub Desktop.
Print to console in Jenkins Groovy system script
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 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
Or just
println "Printed do Jenkins console."