Jenkins with groovy postbuild. Can't execute anything on groovy script box
I need to run a set of code after the build is complete. I am using groovy postbuild plugin (version2.2). I am new to jenkins and groovy. I tried simple println but it doesn't work. I've tried something like this and it doesn't work either. I don't even see the error message if I do any syntax or something.
and i see this output
can someone tell me how can i use groovy postbuild?
source to share
The postbuild groovy config and syntax looks good to me.
I am assuming you are facing this job of type Stream of Stream . I can reproduce this behavior with a configuration similar to yours, and I suspect it is related to the build thread.
One solution that worked for me was to enable a checkbox Flow run needs a workspace
under Job configuration flow and start a new build.
source to share