-
Bug
-
Resolution: Fixed
-
Minor
-
GitHub Branch Source Plugin - 2.2.3
Jenkins - 2.46.2
Our builds have been blocked today, by messages like these repeating every 3 minutes:
09:06:43 GitHub API Usage: The quota may have been refreshed earlier than expected, rechecking...
09:06:44 GitHub API Usage: Current quota has 4966 remaining (3712 over budget). Next quota of 5000 in 2 hr 14 min. Sleeping for 59 min.
Took us a while to find out there is a hard assumption the system time of jenkins (System.currentTimeMillis()) and the system time of the github server (rateLimit.getResetDate().getTime()) are in sync.
In our case, our jenkins system time was set back two hours, and the plugin therefore calculated it would never be possible to sync with github. (and the feedback from the plugin made us look in the wrong direction).
It would be a lot safer to look in the github response?
- duplicates
-
JENKINS-47154 GitHub Rate Limits are compared using the Jenkins master time not the http response's Date
- Resolved