I've written simple groovy script, but I don't know how to execute it on Jenkins.
Look at this simple script:
String jbN = System.getenv('JOB_NAME')
println jbN
println "Hello"
I would except that I will reveived at least "Hello". Script give no return. I've just received Build step 'Groovy Postbuild' marked build as failure(or success)
It seems that script is not executed.
EDIT:
I didn't add it, but I have already script which will analize logs, so I need it to execute it post-build. The problem is bigger then I thought. Plugins: "Scriptler" or "Groovy Plugin" do not print anything. Script which I'm trying to print out:
String jbN = System.getenv('JOB_NAME')
println jbN
