Ah -- Found the "@NonCPS" marker.   Seems to have gotten me past my 
original problem.

Cheers,
Greg


On Thursday, September 8, 2016 at 12:09:26 PM UTC-4, Greg Smith wrote:
>
>
> Hi,
>
> I just updated my Jenkins instance to all of the latest plugins, and now 
> many of my jobs are failing.  They are all failing because of serialization 
> problems:
>
> java.io.NotSerializableException: hudson.model.FreeStyleProject
>       at 
> org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:860)
>
>
> Now, this pipleline groovy script was running fine, but now the rules for 
> when things are serialized has changed again, and its failing.
>
> Can someone point me to something about when / where / how serialization 
> of jobs should be happening, and what the rules are?  I'd like to build 
> pipeline scripts that work over time and through upgrades, but the rules 
> for when the job is serialized don't seem to be firm.
>
> Making sure that I am never using any object in my script that absolutely 
> can't be serialized is becoming a pain.  I can't seem to use any iterators, 
> or hold any object in a var that can't be serialized, even within a single 
> function.
>
> Cheers,
> Greg
>
>
>

-- 
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/32055461-2f0e-44ce-ae59-95cb3e0c9004%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to