I too am seeing the JEP-200 issue with these exceptions packaging to a Docker image and running with that using Docker for Windows:
java.lang.UnsupportedOperationException: Refusing to marshal io.jenkins. jenkinsfile.runner.FileSystemSCM for security reasons; see https: //jenkins.io/redirect/class-filter/ java.lang.UnsupportedOperationException: Refusing to marshal io.jenkins. jenkinsfile.runner.SetJenkinsfileLocation for security reasons; see https: //jenkins.io/redirect/class-filter/ I'd like to try out the Jenkinsfile Runner which looks like a great idea but I don't have time to figure this out right now (busy writing a plugin..). --Bill On Tuesday, 6 March 2018 09:22:53 UTC, Michael Neale wrote: > > Trying this out, looks like I am hitting JEP-200: > > https://jenkins.io/redirect/class-filter/ > > Need to dig in further (I thought I tried the same version of Jenkins as > you). Anyone else seen this? > > > > java.lang.UnsupportedOperationException: Refusing to marshal > io.jenkins.jenkinsfile.runner.SetJenkinsfileLocation for security reasons; > see https://jenkins.io/redirect/class-filter/ > at > hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:543) > at > com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) > at > com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) > at > com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) > at > com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) > at > com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) > at > com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) > at > com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) > at > com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) > at > com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) > at > hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265) > at > hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252) > Caused: java.lang.RuntimeException: Failed to serialize > hudson.model.Actionable#actions for class > org.jenkinsci.plugins.workflow.job.WorkflowRun > > > On Friday, March 2, 2018 at 6:23:15 AM UTC+11, Kohsuke Kawaguchi wrote: >> >> Jenkinsfile Runner is an experiment to package Jenkins pipeline execution >> as a command line tool. The intend use cases include: >> >> - Use Jenkins in Function-as-a-Service context >> - Assist editing Jenkinsfile locally >> - Integration test shared libraries >> >> Over the past year, I've done some deep-dive 1:1 conversations with some >> Jenkins users and I felt something like this might move the needle for them >> in an important way. >> >> I'd love to hear any reactions on your side. Could something like this be >> important for you, does it miss any key points for you? If you mentally >> picture a perfect version of this, what would that do, and how would you >> use? >> >> Let me know! >> >> -- >> Kohsuke Kawaguchi >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/da0e3018-9206-43a3-b814-4a65a73d5c17%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
