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

hudson.model.UsageStatistics not compatible with CasC plugin

    • 2.226

      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.

          [JENKINS-54662] hudson.model.UsageStatistics not compatible with CasC plugin

          Daniel Garzon created issue -
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Labels New: jca
          Oleg Nenashev made changes -
          Labels Original: jca New: jcasc-compatibility
          Oleg Nenashev made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          Oleg Nenashev made changes -
          Labels Original: jcasc-compatibility New: jcasc-compatibility stalled-pr
          Tim Jacomb made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Tim Jacomb made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Tim Jacomb made changes -
          Assignee New: Tim Jacomb [ timja ]
          Daniel Beck made changes -
          Released As New: 2.226
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]

            timja Tim Jacomb
            dgarzon Daniel Garzon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: