The Groovy code we push out to Jenkins through our pipelines and
global libraries is secure and we trust our developers. We would like
not to see jobs fail for instance with:
Caused by: java.lang.UnsupportedOperationException: Refusing to marshal org.codehaus.groovy.runtime.ConvertedClosure for security reasons
at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:452)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
Is there a way to not use the BlacklistedTypesConverter? It is not
providing us with any use.