Notably, Xstream serialization escapes with underscores, so copying class names from XML files will result in this problem.
http://x-stream.github.io/faq.html#XML_double_underscores > On 23.09.2016, at 16:33, user-dev <[email protected]> wrote: > > I am trying to add a nested view using groovy script but is failing > Jenkins.instance.instance.addView(new > hudson.plugins.nested__view.NestedView("Sample View")) > > org.codehaus.groovy.control.MultipleCompilationErrorsException: startup > failed: > Script1.groovy: 3: unable to resolve class > hudson.plugins.nested__view.NestedView > @ line 3, column 35. > Jenkins.instance.instance.addView(new > hudson.plugins.nested__view.NestedView("ViewX" > > > -- > 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/c4734796-20d5-43e1-98d5-9692af38128f%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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/80720277-AF0B-4810-B38A-B5769036D6A0%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
