> On 14.10.2016, at 13:25, Jonathan Hodgson <j.r.hodg...@gmail.com> wrote: > > All I've done is move that one line, and for the record at the moment it's > being called without OSX being active, so nothing inside that first if > statement is being executed (though it shouldn't cause any problems even if > its was) > > I'm confused, and frustrated. Any help greatly appreciated.
The last statement in a Groovy method is the implicit return value. `find` returns a LinkedHashMap$Entry, it gets returned from the method call, and it breaks due to CPS serialization. http://groovy-lang.org/semantics.html#_optional_return_keyword Regarding the regression, likely due to https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Groovy+Plugin#PipelineGroovyPlugin-2.14%28Sep07%2C2016%29 -- 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/B32FE469-5ECF-4533-8B3C-D868007700DE%40beckweb.net. For more options, visit https://groups.google.com/d/optout.