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. groovy

and i see this output

console output

can someone tell me how can i use groovy postbuild?

+3


source to share


1 answer


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.

+3


source







All Articles