• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Critical Critical
    • active-choices-plugin
    • None
    • Cloudbees CI

      I have created some Jobs using the Active Choices plugin, and when importing to my CasC Bundle the generated yaml code from the export feature, my instance is not starting up, and the following logs are printed:

       

      WARNING c.c.j.p.c.i.t.GenericModelObject#fromYaml: Property [script] in class [org.biouno.unochoice.ChoiceParameter] cannot be modelled. Reason: [Could not find a factory for groovyScript of class org.biouno.unochoice.model.Script]\
      WARNING c.c.j.p.c.i.t.GenericModelObject#fromYaml: Property [parameterDefinitions] in class [hudson.model.ParametersDefinitionProperty] cannot be modelled. Reason: [Could not find a factory for groovyScript of class org.biouno.unochoice.model.Script]\
      SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed Bootstrap.initialize\
      com.cloudbees.jenkins.plugins.casc.CasCException: Could not find a factory for groovyScript of class org.biouno.unochoice.model.Script\
          at com.cloudbees.jenkins.plugins.casc.items.types.ReflectionHelper.processMap(ReflectionHelper.java:978)\
          at com.cloudbees.jenkins.plugins.casc.items.types.ReflectionHelper.fromYamlToModel(ReflectionHelper.java:950)\
          [...]
      SEVERE  hudson.util.BootFailure#publish: Failed to initialize Jenkins\
      com.cloudbees.jenkins.plugins.casc.CasCException: Could not find a factory for groovyScript of class org.biouno.unochoice.model.Script\
          at com.cloudbees.jenkins.plugins.casc.items.types.ReflectionHelper.processMap(ReflectionHelper.java:978)\
          at com.cloudbees.jenkins.plugins.casc.items.types.ReflectionHelper.fromYamlToModel(ReflectionHelper.java:950)\
      [...]

      Reference link : https://docs.cloudbees.com/docs/cloudbees-ci-kb/latest/troubleshooting-guides/my-instance-is-failing-to-start-because-active-choice-plugin-is-not-casc-compatible

      May I ask if there is a plan for this feature will be included in a future release? It would be highly useful for both the current and future CI flow. Currently, CloudBees does not natively support multi-select dropdowns and relies on third-party plugins. Adding support for Configuration as Code (CASC) would significantly enhance the plugin's usability and make it stand out.

          [JENKINS-75291] Active Choice plugin is not CasC compatible

          There are no comments yet on this issue.

            kinow Bruno P. Kinoshita
            kailinbcn Kailin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: