java.io.NotSerializableException: hudson.model.FreeStyleProject at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
The serialization is one of the things I personally don't like about pipeline because I don't need it. I wish there was a way to turn it off completely, but that's probably a pipe dream. Use of @NonCPS is usually the best option for things where you want to use full groovy features.
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/32055461-2f0e-44ce-ae59-95cb3e0c9004%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.