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

CasC compatibility with Log Parser Plugin

XMLWordPrintable

    • Log Parser 2.1

      As outlined at https://github.com/jenkinsci/configuration-as-code-plugin/issues/565, when attempting to export configuration on a Jenkins instance with the Log Parser Plugin installed, the resulting yaml file contains a stack trace:

      FAILED TO EXPORT hudson.plugins.logparser.LogParserPublisher$DescriptorImpl
      java.lang.IllegalAccessException: Class io.jenkins.plugins.casc.impl.configurators.DescriptorConfigurator can not access a member of class hudson.plugins.logparser.LogParserPublisher$DescriptorImpl with modifiers "private"
      at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
      at java.lang.Class.newInstance(Class.java:436)
      at io.jenkins.plugins.casc.impl.configurators.DescriptorConfigurator.describe(DescriptorConfigurator.java:64) 

      According to the source of the Log Parser Plugin, this is likely in reference to the fact that the constructor to the DescriptorImpl is private. This implies that there may need to be specialized support to export or configure the plugin with Jenkins CasC. 

      Keep in mind that this plugin has not been updated or years.

            ewel Ewelina Wilkosz
            kchung_twitter Kelvin Chung
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: