The class GlobalConfigDataForSonarInstance must be a Describable
See https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/PLUGINS.md#step-2
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/7132814d-69f0-4d35-ae2f-5aeb0e6e35fdn%40googlegroups.com.
Took a look and tried things out:
You also need a DataBoundConstructor for the noarg contructor of GlobalConfig
And create a method “setListOfGlobalConfigData” and annotate as DataBoundSetter.
Remove the DataBoundSetter from setGlobalConfigDataForSonarInstances
The way of configuring with the GlobalConfigurationService might be a problem with CasC
Line 19 in GlobalConfig should be transient, it doesn’t contain data that should be saved
You can remove the wrapping table in config.jelly
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7ebba756-7178-4769-b05c-7c2dcdfa523cn%40googlegroups.com.

![]() | |
Am 20.08.2024 um 16:31 schrieb Kirk Fitzsimons <fitzsim...@gmail.com>:
I have made some more updates and it appears to be working
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e2c2300b-9d96-401f-93c0-d0040b835e85n%40googlegroups.com.