Hi all
I'm trying to write a custom job DSL and currently face a problem with console output.
When I run the script on my development machine, all log statements (println) are showing up in console.
Works both in IDE (GGTS) and in shell session.
But when I run the same script as part of Jenkins seed job, none of the println messages are showing in job's console output.
I've seen some posts about so called bindings, but can't get them working.
This is how I call the script in Jenkins job
- clone the repository with script(s)
- run the script via Job DSL build step, in my case it's src/jobs/Seed.groovy
I'm also specifying custom class path as 'src' so it picks up my other helper classes
So, how can I get log messages from groovy code showing up in Jenkins console output?
I need those for debugging right now.
Thanks.