[JIRA] (JENKINS-47071) BooleanClosureWrapper isn't serializable, causing .every and friends to fail
Title: Message Title Andrew Bayer commented on JENKINS-47071 Re: BooleanClosureWrapper isn't serializable, causing .every and friends to fail Joe George - that looks like a different issue specific to closures in case statements. Could you open a new ticket for that in the workflow-cps-plugin component? Thanks! Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47071) BooleanClosureWrapper isn't serializable, causing .every and friends to fail
Title: Message Title Joe George edited a comment on JENKINS-47071 Re: BooleanClosureWrapper isn't serializable, causing .every and friends to fail I'm still getting this error in {{switch}} statements.{code:java}switch( nodeData.variant foobarstring ) {case { it.contains("foo") }:echo "foo"breakcase { it.contains("bar") }:echo "bar"break}{code}Causing:{code:java}Caused: java.io.NotSerializableException: org.codehaus.groovy.runtime.callsite.BooleanClosureWrapper{code}Pipeline: Groovy 2.35Pipeline: Declarative 1.2.7 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47071) BooleanClosureWrapper isn't serializable, causing .every and friends to fail
Title: Message Title Joe George commented on JENKINS-47071 Re: BooleanClosureWrapper isn't serializable, causing .every and friends to fail I'm still getting this error in switch statements. switch(nodeData.variant) { case { it.contains("foo") }: echo "foo" break case { it.contains("bar") }: echo "bar" break } Causing: Caused: java.io.NotSerializableException: org.codehaus.groovy.runtime.callsite.BooleanClosureWrapper Pipeline: Groovy 2.35 Pipeline: Declarative 1.2.7 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.