jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-63816] configuring Github API settings with casc is broken

Open
#1,323 0 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin imported-jira-issue priority:trivial resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

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:

---
Originally reported by frank_bartz, imported from: configuring Github API settings with casc is broken


  • status: Open
  • priority: Trivial
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

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:

environment

```
Jenkins 2.235.3

GitHub Branch Source Plugin 2.9.0

Configuration as Code Plugin 1.43
```

1 attachment

- [image-2020-09-30-08-46-56-292.png](https://issues.jenkins.io/secure/attachment/52726/image-2020-09-30-08-46-56-292.png)
> ![image-2020-09-30-08-46-56-292.png](https://issues.jenkins.io/secure/attachment/52726/image-2020-09-30-08-46-56-292.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.