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

JCasC export doesn't work with Custom Tools installed and configured

XMLWordPrintable

      When the Custom Tools plugin is installed and a Custom Tool is configured and JCasc 'View Configuration' button is clicked and the following error results in the Casc output:

      ```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)```

       

      I attempted this with the following versions:

      Configuration as Code Plugin version 1.32
      Configuration as Code Support Plugin version 1.19
      Custom Tools version .6
      Jenkins version 2.190.1

       

            ewel Ewelina Wilkosz
            tisaroo55 TJ Rue
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: