Discovered it during testing of JENKINS-50665
Example (for nonCPS wrapper which may not work correctly as Jesse Glick mentioned in the PR):
def formatter = new org.jfree.chart.axis.QuarterDateFormat()
printTimestamp arg1: 'foo', formatter: formatter, persistFormatter: true
ArgumentsAction Can Fail Serialization Of FlowNodes and Build When Given Unserializable input
JEP-200 - org.apache.maven.model.Model might be dangerous, so rejecting
Reproduced the issue in https://github.com/jenkinsci/workflow-cps-plugin/pull/218 (autotest)
As designed I think. ArgumentsAction represents a best effort at recording metadata. If something cannot be recorded, so be it—the program continues and metadata is incomplete.
Yes, as designed. ArgumentAction data is considered 'noncritical.'
OK, I will invert the test in the pull request then
I created JENKINS-50752 to track the fact that we're not successfully bulletproofing against unserializable Action contents.
Oleg Nenashev the actual argument data is being bulletproofed by JENKINS-50752 implementation now so it CANNOT cause failures elsewhere if it can't be persisted and is instead discarded.