I tried that as I saw someone else suggest that, but I could not get it to work. Then I found somewhere in the Github docs that this doesn't work, presumably because serializing Groovy classes isn't supported. So I ended up using a closure for the effect I was after, and that worked.
Thanks for trying to help! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/471ad690-bb7a-40b2-9cb1-81aba91d64be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.