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

Scheduled builds in the GitHub Org folder shouldn't fail if the rate limit is exceeded

XMLWordPrintable

      On ci.jenkins.io there are a number of builds that are running on a schedule. Unfortunately, if the GitHub authentication token is being rate-limited (sigh) the builds will fail to execute at all:

      Started by user rtyler
      
      Could not update commit status. Message: GitHub API rate limit exceeded
      
      org.jenkinsci.plugins.github_branch_source.RateLimitExceededException: GitHub API rate limit exceeded
      	at org.jenkinsci.plugins.github_branch_source.Connector$1.onError(Connector.java:177)
      	at org.kohsuke.github.Requester.handleApiError(Requester.java:576)
      	at org.kohsuke.github.Requester._to(Requester.java:272)
      	at org.kohsuke.github.Requester.to(Requester.java:213)
      	at org.kohsuke.github.GitHub.checkApiUrlValidity(GitHub.java:538)
      	at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:568)
      	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:247)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:75)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:214)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Finished: FAILURE
      

      Note, this isn't triggered by a change, this is a manually kicked off build which shouldn't fail (IMO) if it cannot set the commit status. (especially at the beginning of the build!)

            cloudbees CloudBees Inc.
            rtyler R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: