-
New Feature
-
Resolution: Unresolved
-
Critical
-
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)\ [...]
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.