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

[Custom Tools Plugin] - JCasC compatibility

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      Custom Tools Plugin 0.6

      Description

      Placeholder for https://github.com/jenkinsci/custom-tools-plugin/pull/31 from Nicolas De Loof which is likely not enough to get a full JCasC support in the plugin

        Attachments

          Issue Links

            Activity

            Show
            oleg_nenashev Oleg Nenashev added a comment - Fixed by https://github.com/jenkinsci/custom-tools-plugin/commit/e2a47c840184ca753eb24983d9625645a822996b in Custom Tools Plugin 0.6
            Hide
            renescheibe René Scheibe added a comment - - edited

            With Jenkins 2.176.2, custom-tools-plugin 0.6, configuration-as-code 1.27 installed and a configured custom tool with only "Name = tool1" set, the following stacktrace is shown when exporting the configuration.

            tool:
              customTool:
                installations: |-
                  FAILED TO EXPORT
                  com.cloudbees.jenkins.plugins.customtools.CustomTool$DescriptorImpl#installations: java.lang.IllegalArgumentException: argument type mismatch
                    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:300)
                    at io.jenkins.plugins.casc.Attribute._describe(Attribute.java:260)
                    at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:235)
                    at io.jenkins.plugins.casc.Configurator.describe(Configurator.java:161)
                    at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.java:106)
                    at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.lambda$describe$3(GlobalConfigurationCategoryConfigurator.java:99)
                    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
                    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
                    at java.util.Iterator.forEachRemaining(Iterator.java:116)
                    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
                    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
                    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
                    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
                    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
                    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
                    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
                    at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.java:99)
                    at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.jav
            
            Show
            renescheibe René Scheibe added a comment - - edited With Jenkins 2.176.2, custom-tools-plugin 0.6, configuration-as-code 1.27 installed and a configured custom tool with only "Name = tool1" set, the following stacktrace is shown when exporting the configuration. tool: customTool: installations: |- FAILED TO EXPORT com.cloudbees.jenkins.plugins.customtools.CustomTool$DescriptorImpl#installations: java.lang.IllegalArgumentException: argument type mismatch 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:300) at io.jenkins.plugins.casc.Attribute._describe(Attribute.java:260) at io.jenkins.plugins.casc.Attribute.describe(Attribute.java:235) at io.jenkins.plugins.casc.Configurator.describe(Configurator.java:161) at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.java:106) at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.lambda$describe$3(GlobalConfigurationCategoryConfigurator.java:99) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.java:99) at io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator.describe(GlobalConfigurationCategoryConfigurator.jav
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            René Scheibe it would be better to create a new issue for that so that we can add the compatibility incrementally

            Show
            oleg_nenashev Oleg Nenashev added a comment - René Scheibe it would be better to create a new issue for that so that we can add the compatibility incrementally
            Hide
            kon Kalle Niemitalo added a comment -
            tool:
              customTool:
                installations: |-
                  FAILED TO EXPORT
                  com.cloudbees.jenkins.plugins.customtools.CustomTool$DescriptorImpl#installations: java.lang.IllegalArgumentException: argument type mismatch
                    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:300)

            This error has been filed as JENKINS-60045. Perhaps JENKINS-54154 can be resolved again.

            Show
            kon Kalle Niemitalo added a comment - tool: customTool: installations: |- FAILED TO EXPORT com.cloudbees.jenkins.plugins.customtools.CustomTool$DescriptorImpl#installations: java.lang.IllegalArgumentException: argument type mismatch 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:300) This error has been filed as JENKINS-60045 . Perhaps JENKINS-54154 can be resolved again.
            Hide
            renescheibe René Scheibe added a comment -

            The still existing issue will be handled in JENKINS-60045.

            Show
            renescheibe René Scheibe added a comment - The still existing issue will be handled in JENKINS-60045 .

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: