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

configuring Github API settings with casc is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • Jenkins 2.235.3
      GitHub Branch Source Plugin 2.9.0
      Configuration as Code Plugin 1.43

      setting the apiRateLimitChecker in the Github API Configuration via config-as-code results in a broken GUI setting in the Jenkins global config (see screenshot below)

       

      gitHubConfiguration:
       apiRateLimitChecker: ThrottleOnOver
       ...
      

       

      basically you can only set those values with casc:

      • ThrottleForNormalize
      • ThrottleOnOver
      • NoThrottle

      as this is exposed as enum value ... so all other values are blocked anyway. So the casc part seems to be correct, but as soon as it is deployed with any of those values, the GUI setting gets broken. You cannot change the value anymore there, as the list only contains the one selected value (untranslated).

      screenshots of broken UI after rolling out with config-as-code:

            Unassigned Unassigned
            frank_bartz fbartz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: