Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57719

Pegdown plugin not supported by JCasC

XMLWordPrintable

    • JCasC 1.21 or earlier

      Based on the configuration in my lts-with-plugins docker image, when I view JCasC configuration on a system with Pegdown Formatter plugin, it shows:

      jenkins:
        markupFormatter: "FAILED TO EXPORT hudson.model.Hudson#markupFormatter: java.lang.ClassCastException:\
          \ java.util.ArrayList cannot be cast to org.jenkins_ci.plugins.pegdown_formatter.PegDownExtension\
          \  at org.jenkins_ci.plugins.pegdown_formatter.ExtensionUtils.combineFlags(ExtensionUtils.java:56)\
          \  at org.jenkins_ci.plugins.pegdown_formatter.ExtensionUtils.toFlags(ExtensionUtils.java:50)\
          \  at org.jenkins_ci.plugins.pegdown_formatter.PegDownFormatter.<init>(PegDownFormatter.java:56)\n\
          Caused: java.lang.reflect.InvocationTargetException  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native\
          \ Method)  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\
          \  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\
          \  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)  at io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator.describe(DataBoundConfigurator.java:256)\
          \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$convertToNode$de0cd4f8$1(HeteroDescribableConfigurator.java:233)\
          \  at io.vavr.CheckedFunction0.lambda$unchecked$52349c75$1(CheckedFunction0.java:201)\
          \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.convertToNode(HeteroDescribableConfigurator.java:233)\
          \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.lambda$describe$5(HeteroDescribableConfigurator.java:103)\
          \  at io.vavr.control.Option.map(Option.java:373)  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:103)\
          \  at io.jenkins.plugins.casc.impl.configurators.HeteroDescribableConfigurator.describe(HeteroDescribableConfigurator.java:51)\
          \  at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:198)  at io.jenkins.plugins.casc.Configurator.describe(Configurator.java:162)"
      

            bap bap
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: