You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-54662] hudson.model.UsageStatistics not compatible with CasC plugin #20125
When trying to configure Jenkins through CASC plugin, one desired feature is to enable / disable "Usage Statistics". Unfortunately, the hudson.model.UsageStatistics descriptor is lacking a @DataBoundSetter and just relies on the configure function to apply the appropriate configuration to the Jenkins instance.
According to: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/REQUIREMENTS.md, we need a boolean field with a getter and setter annotated with @DataBoundSetter so that we can configure it from within the CASC plugin. We would also have to modify the configure function according to the requirements of the CASC plugin, which should follow best-practices.
I would like to contribute with this change if one of the Core Developers agree.
When trying to configure Jenkins through CASC plugin, one desired feature is to enable / disable "Usage Statistics". Unfortunately, the hudson.model.UsageStatistics descriptor is lacking a @DataBoundSetter and just relies on the configure function to apply the appropriate configuration to the Jenkins instance.
According to: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/REQUIREMENTS.md, we need a boolean field with a getter and setter annotated with @DataBoundSetter so that we can configure it from within the CASC plugin. We would also have to modify the configure function according to the requirements of the CASC plugin, which should follow best-practices.
I would like to contribute with this change if one of the Core Developers agree.
Activity
jenkins-infra-bot commentedon Nov 16, 2018
Raw content of original comment:
#3762
jenkins-infra-bot commentedon Sep 8, 2019
twalter:
Raw content of original comment:
oleg_nenashev Any update on this? The linked PR was closed without being merged.
jenkins-infra-bot commentedon Sep 16, 2019
Raw content of original comment:
Does not look so. I reset the status
jenkins-infra-bot commentedon Mar 6, 2020
Raw content of original comment:
Another attempt:
#4549