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

CasC compatibility with Log Parser Plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            ndeloof Nicolas De Loof added a comment -
            Show
            ndeloof Nicolas De Loof added a comment - see https://github.com/jenkinsci/configuration-as-code-plugin/issues/565  for guidance on fixing this issue
            Hide
            jnz_topdanmark Jon Brohauge added a comment - - edited

            Pull Request to make the plugin JCASC compatible

            Show
            jnz_topdanmark Jon Brohauge added a comment - - edited Pull Request to make the plugin JCASC compatible
            Hide
            bdominguez A B added a comment -

            Any news on this?

            Show
            bdominguez A B added a comment - Any news on this?
            Hide
            ewel Ewelina Wilkosz added a comment -

            PR still not merged, will have to check with plugin's maintainer

            Show
            ewel Ewelina Wilkosz added a comment - PR still not merged, will have to check with plugin's maintainer

              People

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

                Dates

                • Created:
                  Updated: