How to print a Groovy variable in Jenkins? February 12, 2023 by Tarik The following code worked for me: echo userInput